Weighted Volume Profile Pivot Points | Flux Charts๐ GENERAL OVERVIEW
Introducing our new Weighted Volume Profile Pivot Points (WVPPP) Indicator! This indicator renders a volume profile using the latest pivot points, automatically adjusting itself when new pivots occur. The pivoting mode can be switched between default pivot points and order blocks mode. It can be adjusted to give more weight to recent or past candlesticks, or can be used as a normal volume profile. For more information, please read the full write-up.
Features of the new Weighted Volume Profile Pivot Points (WVPPP) Indicator :
Renders Volume Profile Of The Range Between Latest Pivots
Two Pivoting Modes Including Order Blocks Mode
Adjustable Weighthing Towards Past or Recent
Customizable Row Count & Maximum Distance
Left or Right Alignment
More Styling Options
๐ฉUNIQUENESS
This indicator stands out with two key features. One is it's ability to weight volumes based on their distance to the current time. Giving weight to volumes may offer new trading opportunities to traders as they can now see the most recent Point Of Control (POC) or a more powerful but past POC based on their choice. Another key feature the indicator has is that it automatically finds latest valid pivot points, and uses that range for the volume profile. The range changes dynamically as new pivots points emerge. You can select between normal pivot points and order blocks mode. The indicator also has a variety of useful styling settings such as aligning the volume profile to the right or the left of the chart, POC Line styling and color settings for bullish & bearish volumes.
๐ HOW DOES IT WORK ?
A volume profile provides an in-depth look at trading activity over a period of time by plotting a histogram on the price axis. This indicator can also give weight to volumes based on their distance to the current time, essentially determining their importance for the profile. The range which the volume profile will cover is determined by the latest pivot points. Here is how it works step-by-step :
1. Determine how much candlesticks the volume profile will cover (Analyze Bars setting)
2. Find the latest pivot points. If the mode is set to "Pivots", the pivot points are the candlesticks which has the highest / lowest wick in X amount of bars (Swing Length setting). If the mode is set to "Order Blocks", the volume profile range is the area between the latest buyside order block and the sellside order block. Order blocks occur when there is a high amount of market orders exist on a price range. It is possible to find order blocks using specific candlestick formations on the chart. For more information about the order block detection, I suggest you checking the write-up of our "Volumized Order Blocks" script. Increasing the "Swing Length" setting is recommended when the mode is set to "Pivots", as this will help in finding stronger pivot points.
3. Make a range using the latest pivot points, then divide it into rows (Row Count setting)
4. Then for each candlestick, add it's volume to the corresponding row in the range. Note that the volume can be added into several rows if it overlaps with them all.
5. If the candlestick is a bullish candlestick, we add it's volume into the bullish volume of the row, if it's a bearish candlestick, we add it to the bearish volume of the row.
With the weighted volume mode, which is activated if "Volume Weighthing" setting is set to "Recent" or "Past", all volumes get a penalty based on their distance to the latest candletstick. For example, if the setting is set to "Recent", the latest candlestick contributes it's volume by 100% to the corresponding row, but the candlestick which is 50 candlesticks far from the current candlestick only contributes it's volume by ~17% to the row. The same applies to the "Past" setting, but in the reversed order, where past candlesticks have more priority than the current ones.
Volume contribution percent for "Recent" setting : ((100 * 0.85) / (i + 1)) + (100 * (1.0 - 0.85))
Volume contribution percent for "Past" setting : ((100 * 0.85) * ((i + 1) / N)) + (100 * (1.0 - 0.85))
Where i = candlestick index from right to left, N = total number of candlesticks analyzed by the volume profile.
The Point Of Control (POC) line is drawn from the row with the most total volume, and is generally considered as a strong level because a lot of trading volume happened on that particular row. Traders may use this line as a support & resistance level.
We believe that automatically ranging the volume profile to important pivot points will help traders see crucial volume information easier without unnecessary hassle. Traders can use this indicator to have an insight of areas which price moves quickly without much volume, or see areas that holds the price still for much longer and plan their trades accordingly.
โ๏ธSETTINGS
1. General Configuration
Mode -> The pivoting mode that is switchable between "Pivots" and "Order Blocks" as described in the write-up. Please read the upper section to understand how this setting works.
Analyze Bars -> Total amount of bars that will be analyzed by the indicator from right to left.
Row Count -> The amount of rows that will the vertical range between pivot points will be divided into.
Volume Weighting -> The volume weighting mode as explained in the write-up.
2. Style
Highlight Sessions -> The volume profile sessions will be highlighted with a blue tint. To prevent confusion, highlighting will not work if the alignment is set to "Right".
Align To -> The alignment of the volume profile.
Search in scripts for "order block"
Candle Range Theory | Flux Charts๐ GENERAL OVERVIEW
Introducing our new Candle Range Theory Indicator! This powerful tool offers a strategy built around the Candle Range Theory, which analyzes market movements through the relative size and structure of price candles. For more information about the process, check the "HOW DOES IT WORK" section.
Features of the new Candle Range Theory Indicator :
Implementation of the Candle Range Theory
FVG & Order Block Entry Methods
2 Different TP / SL Methods
Customizable Execution Settings
Customizable Backtesting Dashboard
Alerts for Buy, Sell, TP & SL Signals
๐ HOW DOES IT WORK ?
The Candle Range Theory (CRT) indicator operates by identifying significant price movements through the relative size and structure of candlesticks. A key part of the strategy is determining large candles based on their range compared to the Average True Range (ATR) in a higher timeframe. Once identified, a breakout of either the high wick or the low wick of the large candle is required. This breakout is considered a liquidity grab. After that, the indicator waits for confirmation through Fair Value Gaps (FVGs) or Order Blocks (OBs). The confirmation structure must be the opposite direction of the breakout, for example if the high wick is broken, a bearish FVG is required for the short entry. After a confirmation signal is received, the indicator will trigger entry points based on your chosen entry method (FVG or OB), and exit points will be calculated using either a dynamic ATR-based TP/SL method or fixed percentages. Alerts for Buy, Sell, Take-Proft, and Stop-Loss are available.
๐ฉ UNIQUENESS
This indicator stands out because it combines two highly effective entry methods: Fair Value Gaps (FVGs) and Order Blocks (OBs). You can choose between these strategies depending on market conditions. Additionally, the dynamic TP/SL system uses the ticker's volatility to automatically calculate stop-loss and take-profit targets. The backtesting dashboard provides metrics about the performance of the indicator. You can use it to tune the settings for best use in the current tiker. The Candle Range Theory approach offers more flexibility compared to traditional indicators, allowing for better customization and control based on your risk tolerance.
โ๏ธ SETTINGS
1. General Configuration
Higher Timeframe: Customize the higher timeframe for analysis. Recommended combinations include M15 -> H4, H4 -> Daily, Daily -> Weekly, and Weekly -> Monthly.
HTF Candle Size: Define the size of the higher timeframe candles as Big, Normal, or Small to filter valid setups based on their range relative to ATR.
Entry Mode: Choose between FVGs and Order Blocks for your entry triggers.
Require Retracement: Enable this option if you want a retracement to the FVG or OB for entry confirmation.
Show HTF Candle Lines: Toggle to display the higher timeframe candle lines for better visual clarity.
2. Fair Value Gaps
FVG Sensitivity: You may select between Low, Normal, High or Extreme FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivities resulting in spotting bigger FVGs, and higher sensitivities resulting in spotting all sizes of FVGs.
3. Order Blocks
Swing Length: Swing length is used when finding order block formations. Smaller values will result in finding smaller order blocks.
4. TP / SL
TP / SL Method:
a) Dynamic: The TP / SL zones will be auto-determined by the algorithm based on the Average True Range (ATR) of the current ticker.
b) Fixed : You can adjust the exact TP / SL ratios from the settings below.
Dynamic Risk: The risk you're willing to take if "Dynamic" TP / SL Method is selected. Higher risk usually means a better winrate at the cost of losing more if the strategy fails. This setting is has a crucial effect on the performance of the indicator, as different tickers may have different volatility so the indicator may have increased performance when this setting is correctly adjusted.
Smart Money Setup 04 [TradingFinder] Three Drive (Harmonic) + OB๐ต Introduction
The "Three Drive" pattern is a well-known formation in technical analysis, recognized for its ability to signal potential trend reversals in price action. Within the realm of trading, particularly in the context of "Reversal Patterns," the Three Drive pattern holds significance as a reliable indicator of shifts in market sentiment.
๐ฃ Bullish 3 Drive
This pattern typically manifests at a price bottom, where a sequence of lower lows suggests a prevailing negative trend. However, within the structure of the Three Drive pattern, a notable occurrence unfolds.
The second low breaches the range of the first low, followed by the third low surpassing the range of the second low. These penetrations signify a diminishing selling pressure and an emerging buying interest.
Traders often await the confirmation of the third low surpassing the second low as an entry point, with price targets set at the highs formed within the Three Drive pattern.
๐ฃ Bearish 3 Drive
Conversely, the Bearish Three Drive pattern emerges at a price top, characterized by a sequence of higher highs indicating an upward trend. Yet, amidst this apparent bullish momentum, a shift occurs.
The second high breaks beyond the range of the first high, succeeded by the third high exceeding the range of the second high. These breaches signify a waning buying strength and a resurgence in selling pressure.
Entry into a trade is often executed after the confirmation of the third high surpassing the second high, with targets set at the lows formed within the Three Drive pattern.
Importance :
Understanding the Three Drive pattern's significance extends beyond mere technical analysis. It bears resemblance to other established patterns, such as the Harmonic Pattern and Ending Diagonal within the Elliott Wave Theory.
Recognizing these parallels aids traders in comprehending broader market dynamics and potential price movements.
๐ต Formation of 3 Drive in Order Block Zone
The convergence of the Three Drive pattern with the concept of the Order Block Zone introduces a nuanced layer to traders' analytical approach.
In "Price Action" methodology, Order Blocks represent areas on the price chart where significant market players, such as institutional traders, have executed notable orders.
These zones often act as barriers, with price encountering resistance or support upon reaching them.
When the Three Drive pattern forms within an Order Block Zone, it signifies a confluence of market dynamics.
The completion of the pattern within this zone suggests a potential reversal in the prevailing trend, augmented by the presence of significant institutional orders.
Traders incorporate these Order Blocks into their analysis to identify probable levels where price may change direction, enhancing the reliability of their trading decisions.
๐ต How to Use :
To effectively utilize the Three Drive pattern within the Order Block Zone, traders seek alignment between the completion of the pattern and the presence of significant Order Blocks.
This convergence enhances the reliability of the pattern's signals, increasing the likelihood of successful trade outcomes.
Bullish Three Drive in Demand Zone :
Bearish Three Drive in Supply Zone :
Settings :
You can set your desired "Pivot Period" via settings for the indicator to identify setups based on it.
Smart Money Flow Index (SMFI) - Advanced SMC [PhenLabs]๐Smart Money Flow Index (SMFI)
Version: PineScriptโขv6
๐Description
The Smart Money Flow Index (SMFI) is an advanced Smart Money Concepts implementation that tracks institutional trading behavior through multi-dimensional analysis. This comprehensive indicator combines volume-validated Order Block detection, Fair Value Gap identification with auto-mitigation tracking, dynamic Liquidity Zone mapping, and Break of Structure/Change of Character detection into a unified system.
Unlike basic SMC indicators, SMFI employs a proprietary scoring algorithm that weighs five critical factors: Order Block strength (validated by volume), Fair Value Gap size and recency, proximity to Liquidity Zones, market structure alignment (BOS/CHoCH), and multi-timeframe confluence. This produces a Smart Money Score (0-100) where readings above 70 represent optimal institutional setup conditions.
๐Points of Innovation
Volume-Validated Order Block Detection โ Only displays Order Blocks when formation candle exceeds customizable volume multiplier (default 1.5x average), filtering weak zones and highlighting true institutional accumulation/distribution
Auto-Mitigation Tracking System โ Fair Value Gaps and Order Blocks automatically update status when price mitigates them, with visual distinction between active and filled zones preventing trades on dead levels
Proprietary Smart Money Score Algorithm โ Combines weighted factors (OB strength 25%, FVG proximity 20%, Liquidity 20%, Structure 20%, MTF 15%) into single 0-100 confidence rating updating in real-time
ATR-Based Adaptive Calculations โ All distance measurements use 14-period Average True Range ensuring consistent function across any instrument, timeframe, or volatility regime without manual recalibration
Dynamic Age Filtering โ Automatically removes liquidity levels and FVGs older than configurable thresholds preventing chart clutter while maintaining relevant levels
Multi-Timeframe Confluence Integration โ Analyzes higher timeframe bias with customizable multipliers (2-10x) and incorporates HTF trend direction into Smart Money Score for institutional alignment
๐งCore Components
Order Block Engine โ Detects institutional supply/demand zones using characteristic patterns (down-move-then-strong-up for bullish, up-move-then-strong-down for bearish) with minimum volume threshold validation, tracks mitigation when price closes through zones
Fair Value Gap Scanner โ Identifies price imbalances where current candle's low/high leaves gap with two-candle-prior high/low, filters by minimum size percentage, monitors 50% fill for mitigation status
Liquidity Zone Mapper โ Uses pivot high/low detection with configurable lookback to mark swing points where stop losses cluster, extends horizontal lines to visualize sweep targets, manages lifecycle through age-based removal
Market Structure Analyzer โ Tracks pivot progression to identify trend through higher-highs/higher-lows (bullish) or lower-highs/lower-lows (bearish), detects Break of Structure and Change of Character for trend/reversal confirmation
Scoring Calculation Engine โ Evaluates proximity to nearest Order Blocks using ATR-normalized distance, assesses FVG recency and distance, calculates liquidity proximity with age weighting, combines structure bias and MTF trend into smoothed final score
๐ฅKey Features
Customizable Display Limits โ Control maximum Order Blocks (1-10), Liquidity Zones (1-10), and FVG age (10-200 bars) to maintain clean charts focused on most relevant institutional levels
Gradient Strength Visualization โ All zones render with transparency-adjustable coloring where stronger/newer zones appear more solid and weaker/older zones fade progressively providing instant visual hierarchy
Educational Label System โ Optional labels identify each zone type (Bullish OB, Bearish OB, Bullish FVG, Bearish FVG, BOS) with color-coded text helping traders learn SMC concepts through practical application
Real-Time Smart Money Score Dashboard โ Top-right table displays current score (0-100) with color coding (green >70, yellow 30-70, red <30) plus trend arrow for at-a-glance confidence assessment
Comprehensive Alert Suite โ Configurable notifications for Order Block formation, Fair Value Gap detection, Break of Structure events, Change of Character signals, and high Smart Money Score readings (>70)
Buy/Sell Signal Integration โ Automatically plots triangle markers when Smart Money Score exceeds 70 with aligned market structure and fresh Order Block detection providing clear entry signals
๐จVisualization
Order Block Boxes โ Shaded rectangles extend from formation bar spanning high-to-low of institutional candle, bullish zones in green, bearish in red, with customizable transparency (80-98%)
Fair Value Gap Zones โ Rectangular areas marking imbalances, active FVGs display in bright colors with adjustable transparency, mitigated FVGs switch to gray preventing trades on filled zones
Liquidity Level Lines โ Dashed horizontal lines extend from pivot creation points, swing highs in bearish color (short targets above), swing lows in bullish color (long targets below), opacity decreases with age
Structure Labels โ "BOS" labels appear above/below price when Break of Structure confirmed, colored by direction (green bullish, red bearish), positioned at 1% beyond highs/lows for visibility
Educational Info Panel โ Bottom-right table explains key terminology (OB, FVG, BOS, CHoCH) and score interpretation (>70 high probability) with semi-transparent background for readability
๐Usage Guidelines
General Settings
Show Order Blocks โ Default: On, toggles visibility of institutional supply/demand zones, disable when focusing solely on FVGs or Liquidity
Show Fair Value Gaps โ Default: On, controls FVG zone display including active and mitigated imbalances
Show Liquidity Zones โ Default: On, manages liquidity line visibility, disable on lower timeframes to reduce clutter
Show Market Structure โ Default: On, toggles BOS/CHoCH label display
Show Smart Money Score โ Default: On, controls score dashboard visibility
Order Block Settings
OB Lookback Period โ Default: 20, Range: 5-100, controls bars scanned for Order Block patterns, lower values detect recent activity, higher values find older blocks
Min Volume Multiplier โ Default: 1.5, Range: 1.0-5.0, sets minimum volume threshold as multiple of 20-period average, higher values (2.0+) filter for strongest institutional candles
Max Order Blocks to Display โ Default: 3, Range: 1-10, limits simultaneous Order Blocks shown, lower settings (1-3) maintain focus on most recent zones
Fair Value Gap Settings
Min FVG Size (%) โ Default: 0.3, Range: 0.1-2.0, defines minimum gap size as percentage of close price, lower values detect micro-imbalances, higher values focus on significant gaps
Max FVG Age (bars) โ Default: 50, Range: 10-200, removes FVGs older than specified bars, lower settings (10-30) for scalping, higher (100-200) for swing trading
Show FVG Mitigation โ Default: On, displays filled FVGs in gray providing visual history, disable to show only active untouched imbalances
Liquidity Zone Settings
Liquidity Lookback โ Default: 50, Range: 20-200, sets pivot detection period for swing highs/lows, lower values (20-50) mark shorter-term liquidity, higher (100-200) identify major swings
Max Liquidity Age (bars) โ Default: 100, Range: 20-500, removes liquidity lines older than specified bars, adjust based on timeframe
Liquidity Sensitivity โ Default: 0.5, Range: 0.1-1.0, controls pivot detection sensitivity, lower values mark only major swings, higher values identify minor swings
Max Liquidity Zones to Display โ Default: 3, Range: 1-10, limits total liquidity levels shown maintaining chart clarity
Market Structure Settings
Pivot Length โ Default: 5, Range: 3-15, defines bars to left/right for pivot validation, lower values (3-5) create sensitive structure breaks, higher (10-15) filter for major shifts
Min Structure Move (%) โ Default: 1.0, Range: 0.1-5.0, sets minimum percentage move required between pivots to confirm structure change
Multi-Timeframe Settings
Enable MTF Analysis โ Default: On, activates higher timeframe trend analysis incorporation into Smart Money Score
Higher Timeframe Multiplier โ Default: 4, Range: 2-10, multiplies current timeframe to determine analysis timeframe (4x on 15min = 1hour)
Visual Settings
Bullish Color โ Default: Green (#089981), sets color for bullish Order Blocks, FVGs, and structure elements
Bearish Color โ Default: Red (#f23645), defines color for bearish elements
Neutral Color โ Default: Gray (#787b86), controls color of mitigated zones and neutral elements
Show Educational Labels โ Default: On, displays text labels on zones identifying type (OB, FVG, BOS), disable once familiar with patterns
Order Block Transparency โ Default: 92, Range: 80-98, controls Order Block box transparency
FVG Transparency โ Default: 92, Range: 80-98, sets Fair Value Gap zone transparency independently from Order Blocks
Alert Settings
Alert on Order Block Formation โ Default: On, triggers notification when new volume-validated Order Block detected
Alert on FVG Formation โ Default: On, sends alert when Fair Value Gap appears enabling quick response to imbalances
Alert on Break of Structure โ Default: On, notifies when BOS or CHoCH confirmed
Alert on High Smart Money Score โ Default: On, alerts when Smart Money Score crosses above 70 threshold indicating high-probability setup
โ
Best Use Cases
Order Block Retest Entries โ After Break of Structure, wait for price retrace into fresh bullish Order Block with Smart Money Score >70, enter long on zone reaction targeting next liquidity level
Fair Value Gap Retracement Trading โ When price creates FVG during strong move then retraces, enter as price approaches unfilled gap expecting institutional orders to continue trend
Liquidity Sweep Reversals โ Monitor price approaching swing high/low liquidity zones against prevailing Smart Money Score trend, after stop hunt sweep watch for rejection into premium Order Block/FVG
Multi-Timeframe Confluence Setups โ Identify alignment when current timeframe Order Block coincides with higher timeframe FVG plus MTF analysis showing matching trend bias
Break of Structure Continuations โ After BOS confirms trend direction, trade pullbacks to nearest Order Block or FVG in direction of structure break using Smart Money Score >70 as entry filter
Change of Character Reversal Plays โ When CHoCH detected indicating potential reversal, look for Smart Money Score pivot with opposing Order Block formation then enter on structure confirmation
โ ๏ธLimitations
Lagging Pivot Calculations โ Pivot-based features (Liquidity Zones, Market Structure) require bars to right of pivot for confirmation, meaning these elements identify levels retrospectively with delay equal to lookback period
Whipsaw in Ranging Markets โ During choppy conditions, Order Blocks fail frequently and structure breaks produce false signals as Smart Money Score fluctuates without clear institutional bias, best used in trending markets
Volume Data Dependency โ Order Block volume validation requires accurate volume data which may be incomplete on Forex pairs or limited in crypto exchange feeds
Subjectivity in Scoring Weights โ Proprietary 25-20-20-20-15 weighting reflects general institutional behavior but may not optimize for specific instruments or market regimes, user cannot adjust factor weights
Visual Complexity on Lower Timeframes โ Sub-hour timeframes generate excessive zones creating cluttered charts, requires aggressive display limit reduction and higher minimum thresholds
No Fundamental Integration โ Indicator analyzes purely technical price action and volume without incorporating economic events, news catalysts, or fundamental shifts that override technical levels
๐กWhat Makes This Unique
Unified SMC Ecosystem โ Unlike indicators displaying Order Blocks OR FVGs OR Liquidity separately, SMFI combines all three institutional concepts plus market structure into single cohesive system
Proprietary Confidence Scoring โ Rather than manual setup assessment, automated Smart Money Score quantifies probability by weighting five institutional dimensions into actionable 0-100 rating
Volume-Filtered Quality โ Eliminates weak Order Blocks forming without institutional volume confirmation, ensuring displayed zones represent genuine accumulation/distribution
Adaptive Lifecycle Management โ Automatically updates mitigation status and removes aged zones preventing trades on dead levels through continuous validity and age monitoring
Educational Integration โ Built-in tooltips, labeled zones, and reference panel make indicator functional for both learning Smart Money Concepts and executing strategies
๐ฌHow It Works
Order Block Detection โ Scans for patterns where strong directional move follows counter-move creating last down-candle before rally (bullish OB) or last up-candle before sell-off (bearish OB), validates formations only when candle exhibits volume exceeding configurable multiple (default 1.5x) of 20-bar average volume
Fair Value Gap Identification โ Compares current candleโs high/low against two-candles-prior low/high to detect price imbalances, calculates gap size as percentage of close and filters micro-gaps below minimum threshold (default 0.3%), monitors whether subsequent price fills 50% triggering mitigation status
Liquidity Zone Mapping โ Employs pivot detection using configurable lookback (default 50 bars) to identify swing highs/lows where retail stops cluster, extends horizontal reference lines from pivot creation and applies age-based filtering to remove stale zones
Market Structure Analysis โ Tracks pivot progression using structure-specific lookback (default 5 bars) to determine trend, confirms uptrend when new pivot high exceeds previous by minimum move percentage, detects Break of Structure when price breaks recent pivot level, flags Change of Character for potential reversals
Multi-Timeframe Confluence โ When enabled, requests security data from higher timeframe (current TF ร HTF multiplier, default 4x), compares HTF close against HTF 20-period MA to determine bias, contributes ยฑ50 points to score ensuring alignment with institutional positioning on superior timeframe
Smart Money Score Calculation โ Evaluates Order Block component via ATR-normalized distance producing max 100-point contribution weighted at 25%, assesses FVG factor through age penalty and distance at 20% weight, calculates Liquidity proximity at 20%, incorporates structure bias (ยฑ50-100 points) at 20%, adds MTF component at 15%, applies 3-period smoothing to reduce volatility
Visual Rendering and Lifecycle โ Draws Order Block boxes, Fair Value Gap rectangles with color coding (green/red active, gray mitigated), extends liquidity dashed lines with fade-by-age opacity, plots BOS labels, displays Smart Money Score dashboard, continuously updates checking mitigation conditions and removing elements exceeding age/display limits
๐กNote:
The Smart Money Flow Index combines multiple Smart Money Concepts into unified institutional order flow analysis. For optimal results, use the Smart Money Score as confluence filter rather than standalone entry signal โ scores above 70 indicate high-probability setups but should be combined with risk management, higher timeframe bias, and market regime understanding.
Mitigation Blocks โ Lite (ICT) + Arrows + Stats๐ Mitigation Blocks โ Lite (ICT-Based) + Arrows
This indicator detects mitigation blocks based on price structure shifts, inspired by ICT (Inner Circle Trader) concepts. It works by identifying strong impulses and highlighting the last opposite candle, forming a mitigation block zone for potential reversal or continuation trades.
๐ Features:
โ
Automatic detection of bullish and bearish mitigation blocks
๐ฉ Box visualization with border color change on mitigation (first touch)
๐ ATR-based impulse filtering
๐ Entry arrows on first mitigation (touch)
๐ Autoscale anchors for better chart readability
๐ Real-time HUD info panel
๐ Backtest-friendly design (stable, deterministic logic)
๐ ๏ธ How it works:
Detects swing highs/lows using pivot points.
Confirms impulse candles breaking recent structure.
Locates the last opposite candle as the mitigation block.
Displays a block box until price revisits the zone.
On the first touch (mitigation), the block is marked and arrows are drawn.
๐ก Ideal Use Case:
Apply this on higher timeframes (e.g., 4H) to identify potential limit order zones.
Use the blocks as entry zones and combine with confluence: FVGs, imbalance, S&D, or liquidity levels.
๐ง Extra Tip:
You can extend this script to include:
Win-rate tracking
Auto TP/SL levels based on ATR
Confluence detection (e.g., FVG, order blocks)
Smart Money Setup 06 [TradingFinder] Liquidity Sweeps + OB Swing๐ต Introduction
Smart Money, managed by large investors, injects significant capital into financial markets by entering real capital markets.
Capital entering the market by this group of individuals is called smart money. Traders can profit from financial markets by following such individuals.
Therefore, smart money can be considered one of the effective methods for analyzing financial markets.
Sometimes, before a market movement, fluctuation movements that create price movement cause many traders' "Stop Loss" to be triggered. These movements are created in various patterns.
One of these patterns is similar to an "Expanding Triangle", which touches the stop loss of individuals who have placed their stop loss in the cash area in the form of 5 consecutive openings.
To better understand this setup, pay attention to the images below.
Bullish Setup Details :
Bearish Setup Details :
๐ต How to Use
After adding the indicator to the chart, wait for trading opportunities to appear. By changing the "Time Frame" and "Pivot Period", you can see different trading positions.
In general, the smaller the "Time Frame" and "Pivot Period", the more likely trading opportunities will appear.
Bullish Setup Details on Chart :
Bearish Setup Details on Chart :
๐ต Settings
You have access to "Pivot Period", "Order Block Refine", and "Refine Mode" through settings.
By changing the "Pivot Period", you can change the range of zigzag that identifies the setup.
Through "Order Block Refine", you can specify whether you want to refine the width of the order blocks or not. It is set to "On" by default.
Through "Refine Mode", you can specify how to improve order blocks.
If you are "risk-averse", you should set it to "Defensive" mode because in this mode, the width of the order blocks decreases, the number of your trades decreases, and the "reward-to-risk ratio "increases.
If you are on the opposite side and are "risk-taker", you can set it to "Aggressive" mode. In this mode, the width of the order blocks increases, and the likelihood of losing positions decreases.
Alert Sender Library [TradingFinder]Library "AlertSenderLibrary_TradingFinder"
๐ต Introduction
The "Alert Sender Library" is a management and production program for "Alert Messages" that enables the creation of unique messages for any type of signal generated by indicators or strategies.
These messages include the direction of the signal, symbol, time frame, the date and time the condition was triggered, prices related to the signal, and a personal message from you. To make better and more optimal use of this "library", you should carefully study " Key Features" and "How to Use".
๐ต Key Features
Automatic Detection of Appropriate Type :
Using two parameters, "AlertType" and "DetectionType", which you must enter at the beginning into the "AlertSender" function, the type of the alert message is determined.
For example, if you select one of the "DetectionType"s such as "Order Block Signal", "Signal", and "Setup", your alert type will be chosen based on "Long" and "Short". Whether it's "Long" or "Short" depends on the "AlertType" you have set to either "Bullish" or "Bearish".
Automatic Symbol Detection :
Whenever you add an alert for a specific symbol, if you want the name of that symbol to be in your message text, you must manually write the name of the symbol in your message. One of the capabilities of the "Alert Sender" is the automatic detection of the symbol and adding it to the message text.
Automatic Time Frame Detection :
When adding your alert, the "Alert Sender" detects the time frame of the symbol you intend to add the alert for and adds it to the text. This feature is very practical and can prevent traders from making mistakes.
For example, a trader might add alerts for a specific symbol using a specific indicator in different time frames, taking the main signal in the 1-hour time frame and only a confirmation signal in the 15-minute time frame. This feature helps to identify in which time frame the signal is set.
Detection of Date and Time When the Signal is Triggered :
You can have the date and time at the moment the message is sent. This feature has various uses. For example, if you use the Webhook URL feature to send messages to a Telegram channel, there might be issues with alert delivery on your server, causing delays, and you might receive the message when it has lost its validity.
With this feature, you can match the sending time of the message from TradingView with the receipt time in your messenger and detect if there is a delay in message delivery.
Important :
You can also set the Time Zone you wish to receive the date and time based on.
Display of "Key Prices" :
Key prices can vary based on the type of signals. For example, when the "DetectionType" is in "Order Block Signal" mode, the key prices are the "Distal" and "Proximal" prices. Or if the "DetectionType" is in "Setup" mode, the key prices are "Entry", "Stop Loss", and "Take Profit".
Receipt of Personal "Messages" :
You can enter your personal message using "input.string" or "input.text_area" in addition to the messages that are automatically created.
Beautiful and Functional Display of Messages :
The titles of messages sent by "AlertSender" are displayed using related emojis to prevent mistakes due to visual errors, enhancing beauty.
๐ต How to Use
๐ฃ Familiarity with Function and Parameters
AlertSender(Condition, Alert, AlertName, AlertType, DetectionType, SetupData, Frequency, UTC, MoreInfo, Message, o, h, l, c, Entry, TP, SL, Distal, Proximal)
โParameters:
โโ- Condition (bool)
โโ- Alert (string)
โโ- AlertName (string)
โโ- AlertType (string)
โโ- DetectionType (string)
โโ- SetupData (string)
โโ- Frequency (string)
โโ- UTC (string)
โโ- MoreInfo (string)
โโ- Message (string)
โโ- o (float)
โโ- h (float)
โโ- l (float)
โโ- c (float)
โโ- Entry (float)
โโ- TP (float)
โโ- SL (float)
โโ- Distal (float)
โโ- Proximal (float)
To add "Alert Sender Library", you must first add the following code to your script.
import TFlab/AlertSenderLibrary_TradingFinder/1
๐ฃ Parameters
"Condition" : This parameter is a Boolean. You need to set it based on the condition that, when met (or fired), you want to receive an alert. The output should be either "true" or "false".
"Alert" : This parameter accepts one of two inputs, "On" or "Off". If set to "On", the alarm is active; if "Off", the alarm is deactivated. This input is useful when you have numerous alerts in an indicator or strategy and need to activate only a few of them. "Alert" is a string parameter.
Alert = input.string('On', 'Alert', , 'If you turn on the Alert, you can receive alerts and notifications after setting the "Alert".', group = 'Alert')
"AlertName" : This is a string parameter where you can enter the name you choose for your alert.
AlertName = input.string('Order Blocks Finder ', 'Alert Name', group = 'Alert')
"AlertType" : The inputs for this parameter are "Bullish" or "Bearish". If the condition selected in the "Condition" parameter is of a bullish bias, you should set this parameter to "Bullish", and if the condition is of a bearish bias, it should be set to "Bearish". "AlertType" is a string parameter.
"DetectionType" : This parameter's predefined inputs include "Order Block Signal", "Signal", "Setup", and "Analysis". You may provide other inputs, but some functionalities, like "Key Price", might be lost. "DetectionType" is a string parameter.
"SetupData" :
If "DetectionType" is set to "Setup", you must specify "SetupData" as either "Basic" or "Full". In "Basic" mode, only the "Entry" price needs to be defined in the function, and "TP" (Take Profit) and "SL" (Stop Loss) can be any number or NA. In "Full" mode, you need to define "Entry", "SL", and "TP". "Setup" is a string parameter.
"Frequency" : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Frequency = input.string('Once Per Bar', 'Message Frequency', , 'The triggering frequency. Possible values are: All (all function calls trigger the alert), Once Per Bar (the first function call during the bar triggers the alert), Per Bar Close (the function call triggers the alert only when it occurs during the last script iteration of the real-time bar, when it closes). The default is alert.freq_once_per_bar.', group = 'Alert')
"UTC" : With this parameter, you can set the Time Zone for the date and time of the alert's dispatch. "UTC" is a string parameter and can be set as "UTC-4", "UTC+1", "UTC+9", or any other Time Zone.
UTC = input.string('UTC', 'Show Alert time by Time Zone', group = 'Alert')
"MoreInfo" : This parameter can take one of two inputs, "On" or "Off", which are strings. Additional information, including "Time" and "Key Price", is included. If set to "On", this information is received; if "Off", it is not displayed in the sent message.
MoreInfo = input.string('On', 'Display More Info', , group = 'Alert')
"Message" : This parameter captures the user's personal message through an input and displays it at the end of the sent message. It is a string input.
MessageBull = input.text_area('Long Position', 'Long Signal Message', group = 'Alert') MessageBear = input.text_area('Short Position', 'Short Signal Message', group = 'Alert')
"o" (Open Price): A floating-point number representing the opening price of the candle. This input is necessary when the "DetectionType" is set to "Signal". Otherwise, it can be any number or "na".
"h" (High Price): A float variable for the highest price of the candle. Required when "DetectionType" is "Signal"; in other cases, any number or "na" is acceptable.
"l" (Low Price): A float representing the lowest price of the candle. This field must be filled if "DetectionType" is "Signal". If not, it can be any number or "na".
"c" (Close Price): A floating-point variable indicating the closing price of the candle. Needed for "Signal" type detections; otherwise, it can take any value or "na".
"Entry" : A float variable indicating the entry price into a trading setup. This is relevant when "DetectionType" is in "Setup" mode. In other scenarios, it can be any number or "na". It denotes the price at which the trade setup is entered.
"TP" (Take Profit): A float that is necessary when "DetectionType" is "Setup" and "SetupData" is "Full". Otherwise, it can be any number or "na". It signifies the price target for taking profits in a trading setup.
"SL" (Stop Loss): A float required when "DetectionType" is "Setup" and "SetupData" is "Full". It can be any number or "na" in other cases. This value represents the price at which a stop loss is set to limit losses.
"Distal" : A float important for "Order Block Signal" detection. It can be any number or "na" if not in use. This variable indicates the price reaching the distal line of an order block.
"Proximal" : A float needed for "Order Block Signal" detection mode. It can take any value or "na" otherwise. It marks the price reaching the proximal line of an order block.
Dammu AI ADVANCED PRO1. Indicator Overview
Name: Dammu
Type: Overlay indicator (draws on price chart)
Purpose: Combines SuperTrend, SMA/EMA trends, Swing/Structure analysis, Order Blocks, Fair Value Gaps, High/Low levels, TP/SL labels, and alerts.
Pine Script Version: v5
2. SuperTrend Module
Computes SuperTrend line using ATR and sensitivity.
Signals:
Bullish: Price crosses above SuperTrend.
Bearish: Price crosses below SuperTrend.
Plots buy/sell labels ๐๐ป based on SMA comparison and SuperTrend cross.
3. SMA/EMA Trend Components
SMA8 & SMA9: Used for additional trend confirmation.
EMA lines: Multiple EMAs with different multipliers for trend detection.
Trend Cloud: Uses Hull MA for trend smoothing.
4. Risk Management
TP/SL Levels: Automatic calculation of stop-loss and take-profit (TP1, TP2, TP3).
Configurable ATR-based risk percentage.
Lines and labels drawn for visual TP/SL.
5. Chart Features
Smooth Range Filter: Filters noise for trend detection.
Colored Trend Cloud: Upward trend = cyan, downward = red.
Sideways Market: ADX filter to color bars purple if trend is weak/sideways.
Bar Colors: Green/red based on SuperTrend signals.
6. Swing & Structure Analysis
Detects Swing Highs/Lows, labels as HH, LH, LL, HL.
Detects CHoCH (Change of Character) or BOS (Break of Structure).
Can show internal or swing structures with configurable label size and color.
7. Order Blocks (Smart Money Concepts)
Detects Internal Order Blocks (iOB) and Swing Order Blocks (OB).
Stores top/bottom/left/time/type in arrays.
Colors and shows boxes based on bullish/bearish type.
Automatically deletes OB if price breaks the block.
8. Fair Value Gaps (FVG)
Identifies gaps between candles as potential trading zones.
Configurable bullish/bearish colors and extension bars.
9. EQH/EQL (Equal Highs/Lows)
Detects equal highs/lows using a threshold.
Plots dotted lines and labels EQH/EQL.
10. High/Low Levels MTF
Optional plotting of previous daily, weekly, monthly highs/lows.
11. Premium/Discount Zones
Plots Premium, Discount, and Equilibrium Zones.
Colors: Premium = red, Discount = green, Equilibrium = gray.
12. Alerts
Buy/Sell alerts for:
SuperTrend crossover
BOS/CHoCH (swing/internal)
EQH/EQL triggers
13. Miscellaneous
Configurable visuals: line style, label size, transparency.
Adjustable volatility filters, ATR lengths, smoothing constants.
Integrated risk & reward visualization.
โ
In short:
This is an all-in-one Smart Money + Trend indicator with SuperTrend signals, swing/structure detection, order blocks, FVGs, EQH/EQL, TP/SL visualization, and optional alerts. Itโs designed for both trend-following and order-block-based trading.
If you want, I can make a super-short 1-paragraph version that summarizes it even faster for quick reference.
Bounty SeekerBounty Seeker - Advanced Market Structure & Order Block Detection
A sophisticated indicator that identifies high-probability reversal zones through the analysis of market structure, volume patterns, and institutional order blocks. This tool helps traders spot potential reversals and fake-outs with precision.
Core Components:
1. Pivot Detection System
โข Smart pivot high/low identification
โข Volume-enhanced confirmation
โข RSI confluence validation
โข Real-time market structure analysis
2. Order Block Detection
โข Institutional buying/selling zones
โข Historical support/resistance levels
โข Smart volume threshold analysis
โข Dynamic level adaptation
Signal Types:
1. Bull Pivots (White X)
โข Strong volume confirmation
โข RSI oversold conditions
โข Price action validation
โข Order block confluence
2. Bear Pivots (Purple X)
โข Volume surge confirmation
โข RSI overbought alignment
โข Bearish price action
โข Resistance zone validation
3. Fake Pivots (Orange X)
โข Low volume warning signals
โข Trap zone identification
โข False breakout detection
โข Risk management guide
Visual Elements:
โข Dashed Lines: Order block zones
โข White/Purple X's: Major pivot points
โข Orange X's: Potential fake moves
โข Dynamic support/resistance levels
Best Usage Practices:
โข Most effective on 1H+ timeframes
โข Focus on major market pairs
โข Wait for complete signal formation
โข Combine with trend direction
โข Monitor volume confirmation
โข Use proper position sizing
The indicator excels at:
1. Identifying potential reversal zones
2. Detecting institutional order blocks
3. Warning of potential fake moves
4. Providing clear entry/exit levels
5. Highlighting strong volume zones
Risk Management:
โข Always wait for signal confirmation
โข Use appropriate stop loss levels
โข Consider multiple timeframe analysis
โข Don't trade against major trends
โข Monitor volume for validation
This indicator combines advanced market structure analysis with volume profiling to help traders identify high-probability trading opportunities while warning of potential traps and fake-outs.
Note: Past performance does not guarantee future results. Always use proper risk management techniques.
Fib BB on VWMA*ATRThis TradingView Pine Script is designed to plot Fibonacci Bollinger Bands on a Volume Weighted Moving Average (VWMA) using the Average True Range (ATR). The script takes a higher timeframe (HTF) approach, allowing traders to analyze price action and volatility from a broader market perspective.
๐น How It Works
Higher Timeframe Data Integration
Users can select a specific timeframe to calculate the VWMA and ATR.
This allows for a more macro perspective, avoiding the noise of lower timeframes.
Volume Weighted Moving Average (VWMA)
Unlike the Simple Moving Average (SMA), VWMA gives higher weight to price movements with larger volume.
Calculation Formula:
๐๐๐๐ด=โ(๐ถ๐๐๐ ๐ร๐๐๐๐ข๐๐) / โ๐๐๐๐ข๐๐
Since VWMA accounts for volume, it is more reactive to price zones with high buying or selling activity, making it useful for identifying liquidity zones.
ATR-Based Fibonacci Bollinger Bands
The Average True Range (ATR) is used to measure market volatility.
Instead of standard deviation-based Bollinger Bands, Fibonacci multipliers (2.618, 3.0, 3.414) are applied to ATR.
These bands adjust dynamically with market volatility.
๐น Key Findings from Exploration
Through testing and analysis, this indicator seems to effectively detect supply and demand zones, particularly at the Fibonacci levels of 2.618 to 3.414.
Price frequently reacts at these bands, indicating that they capture key liquidity zones.
Potential Order Block Detection:
The ends of the Fibonacci Bollinger Bands (especially at 2.618, 3.0, and 3.414) tend to align with order blocksโareas where institutional traders previously accumulated or distributed positions.
This is particularly useful for order flow traders who focus on unfilled institutional orders.
๐น How to Use This Indicator?
Identifying Order Blocks
When price reaches the upper or lower bands, check if there was a strong reaction (rejection or consolidation).
If price rapidly moves away from a band, that level might be an order block.
Spotting Liquidity Pools
VWMAโs nature enhances liquidity detection since it emphasizes high-volume price action.
If a price level repeatedly touches the band without breaking through, it suggests institutional orders may be absorbing liquidity there.
Trend Confirmation
If VWMA is trending upwards and price keeps rejecting the lower bands, it confirms a strong bullish trend.
Conversely, constant rejection from the upper bands suggests a bearish market.
This script is designed for open-source publication and offers traders a refined approach to detecting order blocks and liquidity zones using Fibonacci-based volatility bands.
๐ ํ๊ธ ์ค๋ช
(์์ธ ์ค๋ช
)
์ด ํธ๋ ์ด๋ฉ๋ทฐ ํ์ธ์คํฌ๋ฆฝํธ๋ ๊ฑฐ๋๋ ๊ฐ์ค ์ด๋ํ๊ท (VWMA)๊ณผ ํ๊ท ์ค์ ๋ฒ์(ATR)๋ฅผ ํ์ฉํ์ฌ ํผ๋ณด๋์น ๋ณผ๋ฆฐ์ ๋ฐด๋๋ฅผ ํ์ํ๋ ์งํ์
๋๋ค.
๋ํ, ๊ณ ์ฐจ ํ์ํ๋ ์(HTF) ๋ฐ์ดํฐ๋ฅผ ํ์ฉํ์ฌ ์์ฅ์ ํฐ ํ๋ฆ์ ๋ถ์ํ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค.
๐น ์งํ ์๋ ๋ฐฉ์
๊ณ ์ฐจ ํ์ํ๋ ์(HTF) ๋ฐ์ดํฐ ์ ์ฉ
์ฌ์ฉ์๊ฐ ์ํ๋ ํ์ํ๋ ์์ ์ ํํ์ฌ VWMA์ ATR์ ๊ณ์ฐํ ์ ์์ต๋๋ค.
์ด๋ฅผ ํตํด ๋ ํฐ ์์ฅ ํ๋ฆ์ ๋ถ์ํ ์ ์์ผ๋ฉฐ, ์ ํ์ํ๋ ์์ ๋
ธ์ด์ฆ๋ฅผ ์ค์ผ ์ ์์ต๋๋ค.
๊ฑฐ๋๋ ๊ฐ์ค ์ด๋ํ๊ท (VWMA) ์ ์ฉ
VWMA๋ ๋จ์ ์ด๋ํ๊ท (SMA)๋ณด๋ค ๊ฑฐ๋๋์ด ๋ง์ ๊ฐ๊ฒฉ ์์ง์์ ๋ ํฐ ๊ฐ์ค์น๋ฅผ ๋ถ์ฌํฉ๋๋ค.
๊ณ์ฐ ๊ณต์:
๐๐๐๐ด=โ(๐ถ๐๐๐ ๐ร๐๐๐๐ข๐๐) / โ๐๐๐๐ข๐๐
โ
๊ฑฐ๋๋์ด ๋ง์ด ๋ฐ์ํ ๊ฐ๊ฒฉ ๊ตฌ๊ฐ์ ๊ฐ์กฐํ๋ ํน์ฑ์ด ์์ด, ์์ฅ์ ์ ๋์ฑ ๊ตฌ๊ฐ์ ๋ ์ ํํ ํฌ์ฐฉํ ์ ์์ต๋๋ค.
ATR ๊ธฐ๋ฐ ํผ๋ณด๋์น ๋ณผ๋ฆฐ์ ๋ฐด๋ ์์ฑ
ATR(Average True Range)๋ฅผ ํ์ฉํ์ฌ ๋ณ๋์ฑ์ ์ธก์ ํฉ๋๋ค.
๊ธฐ์กด์ ํ์คํธ์ฐจ ๊ธฐ๋ฐ ๋ณผ๋ฆฐ์ ๋ฐด๋ ๋์ , ํผ๋ณด๋์น ๊ณ์(2.618, 3.0, 3.414)๋ฅผ ATR์ ๊ณฑํ์ฌ ๋ฐด๋๋ฅผ ์์ฑํฉ๋๋ค.
์ด ๋ฐด๋๋ ์์ฅ ๋ณ๋์ฑ์ ๋ฐ๋ผ ์ ๋์ ์ผ๋ก ์กฐ์ ๋ฉ๋๋ค.
๐น ํ๊ตฌ ๊ฒฐ๊ณผ: ๋งค๋ฌผ๋ ๋ฐ ์ค๋๋ธ๋ก ๊ฐ์ง
ํ
์คํธ๋ฅผ ํตํด Fibonacci 2.618 ~ 3.414 ๊ตฌ๊ฐ์์ ๋งค๋ฌผ๋ ๋ฐ ์ค๋๋ธ๋ก์ ํฌ์ฐฉํ๋ ๊ฒฝํฅ์ด ์์์ ํ์ธํ์ต๋๋ค.
๊ฐ๊ฒฉ์ด ํผ๋ณด๋์น ๋ฐด๋(ํนํ 2.618, 3.0, 3.414)์ ๋ฟ์ ๋ ๋ฐ์ํ๋ ๊ฒฝ์ฐ๊ฐ ๋ง์
VWMA์ ํน์ฑ์ ํตํด ์ค๋๋ธ๋ก์ ๊ฐ์งํ ๊ฐ๋ฅ์ฑ์ด ๋์
๐น ์ค๋๋ธ๋ก(Order Block) ๊ฐ์ง ์๋ฆฌ
Fibonacci ๋ฐด๋ ๋ํธ๋จธ๋ฆฌ(2.618 ~ 3.414)์์ ๊ฐ๊ฒฉ์ด ๊ฐํ๊ฒ ๋ฐ์
์ด ์์ญ์์ ๊ฐ๊ฒฉ์ด ๊ฐํ๊ฒ ํ์ด ์ค๋ฅด๊ฑฐ๋(๋งค์ ์๋ ฅ) ๊ธ๋ฝํ๋(๋งค๋ ์๋ ฅ) ๊ฒฝ์ฐ,
โ ๊ธฐ๊ด๋ค์ด ํฌ์ง์
์ ์ฒญ์ฐํ๊ฑฐ๋ ์ถ๊ฐ ๋งค์งํ๋ ๊ตฌ๊ฐ์ผ ๊ฐ๋ฅ์ฑ์ด ํผ.
๊ณผ๊ฑฐ์ ๋๋ ์ฃผ๋ฌธ์ด ์ฒด๊ฒฐ๋ ๊ฐ๊ฒฉ ๊ตฌ๊ฐ(= ์ค๋๋ธ๋ก)์ผ ์ ์์.
VWMA๋ฅผ ํตํ ์ ๋์ฑ ๊ฐ์ง
VWMA๋ ๊ฑฐ๋๋์ด ์ง์ค๋ ๊ฐ๊ฒฉ์ ๊ธฐ์ค์ผ๋ก ์ด๋ํ๊ธฐ ๋๋ฌธ์, ๊ธฐ๊ด ์ฃผ๋ฌธ์ด ๋ง์ด ๋ค์ด์จ ๊ฐ๊ฒฉ๋๋ฅผ ๊ฐ์กฐํ๋ ํน์ง์ด ์์.
๋ฐ๋ผ์ VWMA์ ํผ๋ณด๋์น ๋ฐด๋๊ฐ ๋ง๋๋ ์ง์ ์ ์ ๋์ฑ์ด ๋์ ํต์ฌ ๊ตฌ๊ฐ์ด ๋ ๊ฐ๋ฅ์ฑ์ด ํผ.
๋งค๋ฌผ๋ ๋ฐ ์ฒญ์ฐ ๊ตฌ๊ฐ ๋ถ์
๊ฐ๊ฒฉ์ด ๋ฐด๋์ ๋๋ฌํ์ ๋ ๊ฐํ ๋ฐ๋ฑ์ด ๋์ค๋์ง๋ฅผ ํ์ธ โ ์ค๋๋ธ๋ก ๊ฐ๋ฅ์ฑ
๊ฐ๊ฒฉ์ด ๋ฐด๋๋ฅผ ์ฌ๋ฌ ๋ฒ ํ
์คํธํ๋ฉด์ ๋ํํ์ง ๋ชปํ๋ค๋ฉด, ํด๋น ์ง์ ์ ๊ฐํ ๋งค๋ฌผ๋์ผ ๊ฐ๋ฅ์ฑ
๐น ํ์ฉ ๋ฐฉ๋ฒ
โ
์ค๋๋ธ๋ก ๊ฐ์ง:
๊ฐ๊ฒฉ์ด ๋ฐด๋(2.618~3.414)์ ๋ฟ๊ณ ๊ฐํ๊ฒ ํ๊ธด๋ค๋ฉด, ์ค๋๋ธ๋ก ๊ฐ๋ฅ์ฑ
ํด๋น ์ง์ ์์ ๊ฑฐ๋๋ ์ฆ๊ฐ ๋ฐ ๊ฐํ ๋ฐ๋ฑ ๋ฐ์ ์ ๋งค์ ๊ณ ๋ ค
โ
์ ๋์ฑ ํ ํ์ธ:
VWMA์ ํผ๋ณด๋์น ๋ฐด๋๊ฐ ๋ง๋๋ ๊ตฌ๊ฐ์์ ๋ฐ๋ณต์ ์ผ๋ก ๊ฑฐ๋๋์ด ํฐ์ง๋ค๋ฉด, ํด๋น ์ง์ ์ ๊ธฐ๊ด ์ ๋์ฑ ๊ตฌ๊ฐ์ผ ๊ฐ๋ฅ์ฑ
โ
์ถ์ธ ํ์ธ:
VWMA๊ฐ ์์นํ๊ณ ๊ฐ๊ฒฉ์ด ๋ฐด๋ ํ๋จ(์ง์ง์ )์์ ํ๊ธด๋ค๋ฉด ๊ฐํ ์์น ์ถ์ธ
VWMA๊ฐ ํ๋ฝํ๊ณ ๊ฐ๊ฒฉ์ด ๋ฐด๋ ์๋จ(์ ํญ์ )์์ ๊ฑฐ๋ถ๋นํ๋ฉด ํ๋ฝ ์ถ์ธ ์ง์
TJR SEEK AND DESTROYTJR SEEK AND DESTROY โ Intraday ICT Trading Tool
Built for day traders, TJR SEEK AND DESTROY combines Smart Money concepts like order blocks, fair value gaps, and liquidity sweeps with structure breaks and daily bias to pinpoint high-probability trades during US market hours (9:30โ16:00). Ideal for scalping or intraday strategies on stocks, futures, or forex.
What Makes It Unique?
Unlike standalone ICT indicators, this script integrates:
Order Blocks with volume and range filters for precise support/resistance zones.
Fair Value Gaps (FVG) to spot pre-market price imbalances.
Break of Structure (BOS) and Liquidity Sweeps for trend and reversal signals.
A 1H MA-based Bias to align trades with the dayโs direction.
BUY/SELL Labels triggered only when bias, BOS, and sweeps align, reducing noise.
How Does It Work?
Order Blocks: Marks zones with high volume (>1.5x 20-period SMA) and low range (<0.5x ATR20) as teal boxesโpotential reversal points.
Fair Value Gap: Compares the prior dayโs close to the current open (pre- or post-9:30), shown as a purple line and label (e.g., "FVG: 0.005").
Pivot Point: Calculates (prevHigh + prevLow + prevClose) / 3 from the prior day, plotted as an orange line for equilibrium.
Break of Structure: Detects crossovers of 5-bar highs/lows (gray lines), marked with red triangles.
Liquidity Sweeps: Tracks breaches of the prior dayโs high/low (yellow lines), marked with yellow triangles.
Daily Bias: Uses 1H close vs. 20-period MA (blue line) for bullish (green background), bearish (red), or neutral (gray) context.
Signals: BUY (green label) when bias is bullish, price breaks up, and sweeps the prior high; SELL (red label) when bias is bearish, price breaks down, and sweeps the prior low.
How to Use It
Setup: Apply to 1Mโ15M charts for US session trading (9:30โ16:00 EST).
Trading:
Wait for a BUY label after a yellow sweep triangle above the prior dayโs high in a green (bullish) background.
Wait for a SELL label after a yellow sweep triangle below the prior dayโs low in a red (bearish) background.
Use order blocks (teal boxes) as support/resistance for stop-loss or take-profit.
Markets: Best for SPY, ES futures, or forex pairs with US session volatility.
Underlying Concepts
Order Blocks: High-volume, low-range bars suggest institutional activity.
FVG: Gaps between close and open indicate imbalance to be filled.
BOS & Sweeps: Price breaking key levels signals momentum or stop-hunting.
Bias: 1H MA filters trades by broader trend.
Chart Setup
Displays order blocks (teal boxes), pivot (orange), open (purple), bias (colored background), BOS/sweeps (triangles), and signals (labels). Keep other indicators off for clarity.
DonAlt - Smart Money Toolkit [BigBeluga]DonAlt - Smart Money Toolkit is inspired by the analytical insights of popular crypto influencer DonAlt.
This advanced toolkit integrates smart money concepts with key technical analysis elements to enhance your trading decisions.
๐ต KEY FEATURES:
SUPPORT AND RESISTANCE LEVELS Automatically identifies critical market turning points with significant volume. Levels turn green when the price is above them and red when below, providing a visual cue for key market thresholds.
โ
โ
โ
ORDER BLOCKS: Highlights significant price zones preceding major price movements.
- If the move is down , it searches for the last bullish candle and plots a block from its body.
- If the move is up , it searches for the last bearish candle and creates a block from its body.
These blocks help identify areas of institutional interest and potential reversals.
โ
โ
โ
TRENDLINES: Automatically plots trendlines to identify breakout zones or price accumulation areas.
โข Bullish trendlines accumulation form when the current low is higher than the previous low.
โข Bearish trendlines accumulation emerge when the current high is lower than the previous high.
โข Bullish trendlines Breakout form when the price break above it.
โข Bearish trendlines Breakout form when the price break below it.
โ
โ
โ
Volatility Integration: The levels incorporate normalized volatility to ensure only significant zones are highlighted, filtering noise and emphasizing meaningful data.
โ
โ
๐ต WHEN TO USE:
This toolkit is ideal for traders seeking to align with "smart money" strategies by identifying key areas of institutional activity, strong support and resistance zones, and potential breakout setups.
โ
โ
๐ต CUSTOMIZATION:
Toggle the visibility of levels, order blocks, or trendlines to match your trading style and focus.
Colors of the Bull and Bear key features
Extend trendline
WhalenatorThis custom TradingView indicator combines multiple analytic techniques to help identify potential market trends, areas of support and resistance, and zones of heightened trading activity. It incorporates a SuperTrend-like line based on ATR, Keltner Channels for volatility-based price envelopes, and dynamic order blocks derived from significant volume and pivot points. Additionally, it highlights โwhaleโ activitiesโperiods of exceptionally large volumeโalong with an estimated volume profile level and approximate bid/ask volume distribution. Together, these features aim to offer traders a more comprehensive view of price structure, volatility, and institutional participation.
This custom TradingView indicator integrates multiple trading concepts into a single, visually descriptive tool. Its primary goal is to help traders identify directional bias, volatility levels, significant volume events, and potential support/resistance zones on a price chart. Below are the main components and their functionalities:
SuperTrend-Like Line (Trend Bias):
At the core of the indicator is a trend-following line inspired by the SuperTrend concept, which uses Average True Range (ATR) to adaptively set trailing stop levels. By comparing price to these levels, the line attempts to indicate when the market is in an uptrend (price above the line) or a downtrend (price below the line). The shifting levels can provide a dynamic sense of direction and help traders stay with the predominant trend until it shifts.
Keltner Channels (Volatility and Range):
Keltner Channels, based on an exponential moving average and Average True Range, form volatility-based envelopes around price. They help traders visualize whether price is extended (touching or moving outside the upper/lower band) or trading within a stable range. This can be useful in identifying low-volatility consolidations and high-volatility breakouts.
Dynamic Order Blocks (Approximations of Supply/Demand Zones):
By detecting pivot highs and lows under conditions of significant volume, the indicator approximates "order blocks." Order blocks are areas where institutional buying or selling may have occurred, potentially acting as future support or resistance zones. Although these approximations are not perfect, they offer a visual cue to areas on the chart where price might react strongly if revisited.
Volume Profile Proxy and Whale Detection:
The indicator highlights price levels associated with recent maximum volume activity, providing a rough "volume profile" reference. Such levels often become key points of price interaction.
"Whale" detection logic attempts to identify bars where exceptionally large volume occurs (beyond a defined threshold). By tracking these "whale bars," traders can infer where heavy participationโoften from large traders or institutionsโmay influence market direction or create zones of interest.
Approximate Bid/Ask Volume and Dollar Volume Tracking:
The script estimates whether volume within each bar leans more towards the bid or the ask side, aiming to understand which participant (buyers or sellers) might have been more aggressive. Additionally, it calculates dollar volume (close price multiplied by volume) and provides an average to gauge the relative participation strength over time.
Labeling and Visual Aids:
Dynamic labels display Whale Frequency (the ratio of bars with exceptionally large volume), average dollar volume, and approximate ask/bid volume metrics. This gives traders at-a-glance insights into current market conditions, participation, and sentiment.
Strengths:
Multifaceted Analysis:
By combining trend, volatility, volume, and order block logic in one place, the indicator saves chart space and simplifies the analytical process. Traders gain a holistic view without flipping between multiple separate tools.
Adaptable to Market Conditions:
The use of ATR and Keltner Channels adapts to changing volatility conditions. The SuperTrend-like line helps keep traders aligned with the prevailing trend, avoiding constant whipsaws in choppy markets.
Volume-Based Insights:
Integrating whale detection and a crude volume profile proxy helps traders understand where large players might be interacting. This perspective can highlight critical levels that might not be evident from price action alone.
Convenient Visual Cues and Labels:
The indicator provides quick reference points and textual information about the underlying volume dynamics, making decision-making potentially faster and more informed.
Weaknesses:
Heuristic and Approximate Nature:
Many of the indicatorโs features, like the "order blocks," "whale detection," and the approximate bid/ask volume, rely on heuristics and assumptions that may not always be accurate. Without actual Level II data or true volume profiles, the insights are best considered as supplementary, not definitive signals.
Lagging Components:
Indicators that rely on past data, like ATR-based trends or moving averages for Keltner Channels, inherently lag behind price. This can cause delayed signals, particularly in fast-moving markets, potentially missing some early opportunities or late in confirming market reversals.
No Guaranteed Predictive Power:
As with any technical tool, it does not forecast the future with certainty. Strong volume at a certain level or a bullish SuperTrend reading does not guarantee price will continue in that direction. Market conditions can change unexpectedly, and false signals will occur.
Complexity and Overreliance Risk:
With multiple signals combined, thereโs a risk of information overload. Traders might feel compelled to rely too heavily on this one tool. Without complementary analysis (fundamentals, news, or additional technical confirmation), overreliance on the indicator could lead to misguided trades.
Conclusion:
This integrated indicator offers a comprehensive visual guide to market structure, volatility, and activity. Its strength lies in providing a multi-dimensional viewpoint in a single tool. However, traders should remain aware of its approximations, inherent lags, and the potential for conflicting signals. Sound risk management, position sizing, and the use of complementary analysis methods remain essential for trading success.
Risks Associated with Trading:
No indicator can guarantee profitable trades or accurately predict future price movements. Market conditions are inherently unpredictable, and reliance on any single tool or combination of tools carries the risk of financial loss. Traders should practice sound risk management, including the use of stop losses and position sizing, and should not trade with funds they cannot afford to lose. Ultimately, decisions should be guided by a thorough trading plan and possibly supplemented with other forms of market analysis or professional advice.
Risks and Important Considerations:
โข Not a Standalone Tool:
โข This indicator should not be used in isolation. It is essential to incorporate additional technical analysis tools, fundamental analysis, and market context when making trading decisions.
โข Relying solely on this indicator may lead to incomplete assessments of market conditions.
โข Market Volatility and False Signals:
โข Financial markets can be highly volatile, and indicators based on historical data may not accurately predict future movements.
โข The indicator may produce false signals due to sudden market changes, low liquidity, or atypical trading activity.
โข Risk Management:
โข Always employ robust risk management strategies, including setting stop-loss orders, diversifying your portfolio, and not over-leveraging positions.
โข Understand that no indicator guarantees success, and losses are a natural part of trading.
โข Emotional Discipline:
โข Avoid making impulsive decisions based on indicator signals alone.
โข Emotional trading can lead to significant financial losses; maintain discipline and adhere to a well-thought-out trading plan.
โข Continuous Learning and Adaptation:
โข Stay informed about market news, economic indicators, and global events that may impact trading conditions.
โข Continuously evaluate and adjust your trading strategies as market dynamics evolve.
โข Consultation with Professionals:
โข Consider seeking advice from financial advisors or professional traders to understand better how this indicator can fit into your overall trading strategy.
โข Professional guidance can provide personalized insights based on your financial goals and risk tolerance.
Disclaimer:
Trading financial instruments involves substantial risk and may not be suitable for all investors. Past performance is not indicative of future results. This indicator is provided for informational and educational purposes only and should not be considered investment advice. Always conduct your own research and consult with a licensed financial professional before making any trading decisions.
Note: The effectiveness of any technical indicator can vary based on market conditions and individual trading styles. It's crucial to test indicators thoroughly using historical data and possibly paper trading before applying them in live trading scenarios.
ICT Unicorn | Flux Charts๐ GENERAL OVERVIEW
Introducing our new ICT Unicorn Indicator! This indicator is built around the ICT's "Unicorn" strategy. The strategy uses Breaker Blocks and Fair Value Gaps for entry confirmation. For more information about the process, check the "HOW DOES IT WORK" section.
Features of the new ICT Unicorn Indicator :
Implementation of ICT's Unicorn Strategy
Toggleable Retracement Entry Method
3 Different TP / SL Methods
Customizable Execution Settings
Customizable Backtesting Dashboard
Alerts for Buy, Sell, TP & SL Signals
๐ HOW DOES IT WORK ?
The ICT Unicorn entry model merges the concepts of Breaker Blocks and Fair Value Gaps (FVGs), offering a distinct method for identifying trade opportunities. By integrating these two elements, we can have a position entry with stop-loss and take-profit targets on the potential support & resistance zones. This model is particularly reliable for trade entry, as it combines two powerful entry techniques.
An ICT Unicorn Model consists of a FVG which is overlapping with a Breaker Block of the same type. Here is an example :
When a FVG overlaps with a Breaker Block of the same type, the indicator gives a Buy or Sell signal depending on the FVG type (Bullish & Bearish). If the "Require Retracement" option is enabled in the settings, the signals are not given immediately. Instead, the current price of the ticker will need to touch the FVG once more before the signals are given.
After the Buy or Sell signal, the indicator immediately draws the take-profit (TP) and stop-loss (SL) targets. The indicator has three different TP & SL modes, explained in the "Settings" section of this write-up.
You can set up alerts for entry and TP & SL signals, and also check the current performance of the indicator and adjust the settings accordingly to the current ticker using the backtesting dashboard.
๐ฉ UNIQUENESS
This indicator is an all-in-one suit for the ICT's Unicorn concept. It's capable of plotting the strategy, giving signals, a backtesting dashboard and alerts feature. Different and customizable algorithm modes will help the trader fine-tune the indicator for the asset they are currently trading. Three different TP / SL modes are available to suit your needs. The backtesting dashboard allows you to see how your settings perform in the current ticker. You can also set up alerts to get informed when the strategy is executable for different tickers.
โ๏ธ SETTINGS
1. General Configuration
FVG Detection Sensitivity -> You may select between Low, Normal, High or Extreme FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
Swing Length -> Swing length is used when finding order block formations. Smaller values will result in finding smaller order & breaker blocks.
Require Retracement ->
a) Disabled : The entry signal is given immediately once a FVG overlaps with a Breaker Block of the same type.
b) Enabled : The current price of the ticker will need to touch the FVG once more before the entry signal is given.
2. TP / SL
TP / SL Method ->
a) Unicorn : This is the default option. The SL will be set to the lowest low of the last 100 bars with an extra offset in a Buy signal. For Sell signals, the SL will be set to the highest high of the last 100 bars with an extra offset. The TP is then set to a value using the SL value and maintaining a risk-reward ratio.
b) Dynamic: The TP / SL zones will be auto-determined by the algorithm based on the Average True Range (ATR) of the current ticker.
c) Fixed : You can adjust the exact TP / SL ratios from the settings below.
Dynamic Risk -> The risk you're willing to take if "Dynamic" TP / SL Method is selected. Higher risk usually means a better winrate at the cost of losing more if the strategy fails. This setting is has a crucial effect on the performance of the indicator, as different tickers may have different volatility so the indicator may have increased performance when this setting is correctly adjusted.
MTF OB & FVG detector w/ Alerts v2# MTF OB & FVG Detector with Alerts๏ผใใซใใฟใคใ ใใฌใผใ ใชใผใใผใใญใใฏ๏ผใใงใขใใชใฅใผใฎใฃใใๆคๅบๅจ๏ผ
## ๆฆ่ฆ
ใใฎใคใณใธใฑใผใฟใผใฏใ่คๆฐใฎๆ้่ถณใง**ใชใผใใผใใญใใฏ๏ผOB๏ผ**ใจ**ใใงใขใใชใฅใผใฎใฃใใ๏ผFVG๏ผ**ใๆคๅบใใใใใใฎใพใผใณใใใฎๅ็บใใชใขใซใฟใคใ ใงใขใฉใผใ้็ฅใใพใใ้ซๅบฆใชใใชใฅใผใ ๅๆใจใใซใใฟใคใ ใใฌใผใ ๅๆใ็ตใฟๅใใใ้ซ็ขบ็ใฎใตใใผใใปใฌใธในใฟใณในใพใผใณใ็นๅฎใใพใใ
## ไธปใชๆฉ่ฝ
### 1. ใใซใใฟใคใ ใใฌใผใ ใชใผใใผใใญใใฏๆคๅบ
- **ๅฏพๅฟๆ้่ถณ**: 1ๅใ3ๅใ5ๅใ15ๅใ60ๅ
- ๅๆ้่ถณใๅๅฅใซๆๅน/็กๅนๅๅฏ่ฝ
- ๆญฃ็ขบใชไพกๆ ผใฌใใซใงOBใพใผใณใ่ชๅ่กจ็คบ
- ใใซ/ใใขๆฏ็ใฎๅ
่จณใๅซใใใชใฅใผใ ๆ
ๅ ฑ่กจ็คบ
- ใฟใคใๅฅ่ฒๅใ: ใใชใใทใฅ๏ผ้๏ผ/ ใใขใชใใทใฅ๏ผ่ตค๏ผ- ๅ่ปขๅฏ่ฝ
### 2. ใใงใขใใชใฅใผใฎใฃใใ๏ผFVG๏ผๆคๅบ
- ็พๅจใฎใใฃใผใๆ้่ถณใงใใชใใทใฅใปใใขใชใใทใฅFVGใใฟใผใณใๆคๅบ
- ใฎใฃใใๅ
ใฎใใชใฅใผใ ๅๅธใ่กจ็คบ
- ่ฒๅใ: ใใชใใทใฅ๏ผใขใฏใข๏ผ/ ใใขใชใใทใฅ๏ผใชใฌใณใธ๏ผ- ๅ่ปขๅฏ่ฝ
- ใใใฃใฒใผใ/ใใฌใคใฏใใใFVGใ่ชๅๅ้ค
- **ๆณจๆ**: 1ๅ่ถณใใฃใผใใงใฏใใใฉใซใใงFVGใฏ็กๅนๅใใใฆใใพใใใ่จญๅฎใงๆๅนๅใงใใพใใ
### 3. ใคใณใใชใธใงใณใใชใใฌใคใฏๆคๅบ
- **ใชใผใใผใใญใใฏ**: ไพกๆ ผใใพใผใณใ็ช็ ดใใใจ่ชๅๅ้ค
- ใใชใใทใฅOB: ไพกๆ ผใไธใซๆใใใจๅ้ค
- ใใขใชใใทใฅOB: ไพกๆ ผใไธใซๆใใใจๅ้ค
- **ใใงใขใใชใฅใผใฎใฃใใ**: ไพกๆ ผใใฎใฃใใใๅฎๅ
จใซใใใฃใฒใผใใใใจๅ้ค
- ใใฌใคใฏๆนๆณใฎ่จญๅฎ: ใใฒใใผในใพใใฏๅฎไฝใใผใน
### 4. ้ซๅบฆใชใขใฉใผใใทในใใ
- **ๅ็บใขใฉใผใ**: ไพกๆ ผใOBใพใใฏFVGใพใผใณใใๅ็บใใ้ใซใใชใฌใผ
- ใใชใใทใฅใจใใขใชใใทใฅใงๅๅฅใขใฉใผใ
- ใขใฉใผใใกใใปใผใธใซๆ้่ถณๆ
ๅ ฑใๅซใ
- ๆๅนๅใใใใในใฆใฎๆ้่ถณใๅๆ็ฃ่ฆ
- **ๆฐ่ฆOBๅฝขๆใขใฉใผใ**: ๆฐใใใชใผใใผใใญใใฏใๅฝขๆใใใใจใใซ้็ฅ
- **็ตฑๅใพใผใณใขใฉใผใ**: ่คๆฐใฎOBใ็ตฑๅใใใใจใใซ้็ฅ
- **่จญๅฎๅฏ่ฝใช้พๅค**: ๆๅฐOB็ตฑๅๆฐใ่จญๅฎ๏ผใใใฉใซใ: 3ใ็ฏๅฒ: 2-10๏ผ
- ่คๆฐๆ้่ถณใซใใใๅผทๅใชใณใณใใซใจใณในใพใผใณใ็คบใ
- ้ซ็ขบ็ใฎใตใใผใ/ใฌใธในใฟใณในใจใชใขใ่ญฆๅ
- ใใๅคใใฎOBใ็ตฑๅ = ใใๅผทๅใชใพใผใณ = ใใ้ซใใขใฉใผใๅชๅ
ๅบฆ
- ใในใฆใฎใขใฉใผใใๅๅฅใซๆๅน/็กๅนๅๅฏ่ฝ
### 5. ใใธใฅใขใซใซในใฟใใคใบ
- **ใใญในใ่กจ็คบ**: ็พๅจๆๅปใฎ3ใใผๅณใใๅทฆๅฏใใง่กจ็คบ
- **ใพใผใณๅปถ้ท**: 40ใใผๅ
ใพใงๅปถ้ท๏ผ่จญๅฎๅฏ่ฝ๏ผ
- **่ฒใฎๅ่ปข**:
- OB: ้/่ตค ใพใใฏ ่ตค/้ ใฎๅใๆฟใ
- FVG: ใขใฏใข/ใชใฌใณใธ ใพใใฏ ใชใฌใณใธ/ใขใฏใข ใฎๅใๆฟใ
- **ไธไฝๆ้่ถณ่กจ็คบ**: 1ๅ่ถณใจ3ๅ่ถณใพใผใณใฎใชใใทใงใณ่กจ็คบ
### 6. ใใชใฅใผใ ๅๆ
- ๅOBใซใใซ/ใใขๆฏ็ใๅซใ็ทใใชใฅใผใ ใ่กจ็คบ
- ใใผใปใณใใผใธๅ
่จณใงๅชๅขใชใใชใฅใผใ ๅดใ่กจ็คบ
- FVGใฏใฎใฃใใๅ
จไฝใฎใใชใฅใผใ ๅๅธใ่กจ็คบ
#### ใใญในใ่กจ็คบใฎ่ฆๆน
**ใชใผใใผใใญใใฏใฎใใญในใๅฝขๅผ:** ` 5m OB 12.5M (85%)`
- ** **: ่คๆฐใฎๆ้่ถณใ็ตฑๅใใใๅ ดๅใซ่กจ็คบ๏ผใชใใทใงใณ่กจ็คบ๏ผ
- **5m OB**: ๆ้่ถณใฎ่ญๅฅๅญ๏ผ5ๅ่ถณใชใผใใผใใญใใฏ๏ผ
- **12.5M**: OBใพใผใณใงๅๅผใใใ็ทใใชใฅใผใ ๏ผๅธธใซ็พไธๅไฝใงๅฐๆฐ็น็ฌฌ1ไฝใพใง่กจ็คบ๏ผ
- ไพ: 12.5Mใ0.8Mใ156.3M
- **(85%)**: ๅชๅข๏ผๅผทใๅด๏ผใฎใใชใฅใผใ ใฎๅฒๅ
- ใใชใใทใฅOBใฎๅ ดๅ: ใใชใใทใฅใใชใฅใผใ ใฎๅฒๅ๏ผๅผทใๅด๏ผ
- ใใขใชใใทใฅOBใฎๅ ดๅ: ใใขใชใใทใฅใใชใฅใผใ ใฎๅฒๅ๏ผๅผทใๅด๏ผ
- ใใผใปใณใใผใธใ้ซใ = ใใๅผทๅใชOB๏ผไธๆน็ใชใใชใฅใผใ ๏ผ
**ใใงใขใใชใฅใผใฎใฃใใใฎใใญในใๅฝขๅผ:** `15m FVG 8.3M (85%)`
- **15m FVG**: ๆ้่ถณใฎ่ญๅฅๅญ๏ผ15ๅ่ถณใใงใขใใชใฅใผใฎใฃใใ๏ผ
- **8.3M**: FVGใฎ็ทใใชใฅใผใ ๏ผๅธธใซ็พไธๅไฝใงๅฐๆฐ็น็ฌฌ1ไฝใพใง่กจ็คบ๏ผ
- ไพ: 8.3Mใ1.2Mใ45.7M
- **(85%)**: ๅชๅข๏ผๅผทใๅด๏ผใฎใใชใฅใผใ ใฎๅฒๅ
- ใใชใใทใฅFVGใฎๅ ดๅ: ใใชใใทใฅใใชใฅใผใ ใฎๅฒๅ๏ผๅผทใๅด๏ผ
- ใใขใชใใทใฅFVGใฎๅ ดๅ: ใใขใชใใทใฅใใชใฅใผใ ใฎๅฒๅ๏ผๅผทใๅด๏ผ
- ใใผใปใณใใผใธใ้ซใ = ใใๅผทๅใชFVG๏ผไธๆน็ใชใใชใฅใผใ ๏ผ
## ไฝฟ็จๆนๆณ
### ๅบๆฌใปใใใขใใ
1. **ใใฃใผใใซ่ฟฝๅ **: TradingViewใฎใคใณใธใฑใผใฟใผใงใMTF OB & FVG detectorใใๆค็ดข
2. **ๆ้่ถณใ้ธๆ**: ๅธๆใฎๆ้่ถณใๆๅนๅ๏ผใใใฉใซใ: 5ๅใ15ๅใ60ๅ๏ผ
3. **ใขใฉใผใ่จญๅฎ**: ๅ็บใจๆฐ่ฆOBๅฝขๆใฎใขใฉใผใใๆๅนๅ
### ่จญๅฎใฌใคใ
#### ใใซใใฟใคใ ใใฌใผใ ่จญๅฎ
- **Show Lower Timeframes**: 1ๅ่ถณใจ3ๅ่ถณใพใผใณใ่กจ็คบ๏ผใใใฉใซใ: ON๏ผ
- **ๅๆ้่ถณ**: ๅๆ้่ถณ๏ผ1m, 3m, 5m, 15m, 60m๏ผใฎๅๅฅๅใๆฟใ
- ๆจๅฅจ: ใใฃใผใใฎๆทท้ใ้ฟใใใใ2-3ๅใฎๆ้่ถณใไฝฟ็จ
#### ไธ่ฌ่จญๅฎ
- **Zone Count**: ๆ้่ถณใใใใฎOBๆฐ๏ผLow/Medium/High๏ผ
- Medium๏ผ5ใพใผใณ๏ผ: ่คๆฐๆ้่ถณไฝฟ็จๆใซๆจๅฅจ
- High๏ผ10ใพใผใณ๏ผ: ๅฐๆฐๆ้่ถณใงใฎ่ฉณ็ดฐๅๆ็จ
- **Swing Length**: OBๆคๅบใฎๆๅบฆ๏ผใใใฉใซใ: 3๏ผ
- ไฝใๅค = ใใๅฐใใใใใ้ ป็นใชOB
- ้ซใๅค = ใใๅคงใใใใใๅฐๆฐใฎOB
- **Break Detection Method**: OB็กๅนๅใซWickใพใใฏBodyใ้ธๆ
#### ใใงใขใใชใฅใผใฎใฃใใ่จญๅฎ
- **Show Fair Value Gaps**: FVG่กจ็คบใฎๅใๆฟใ
- ใใใฉใซใ: ON๏ผใในใฆใฎๆ้่ถณ๏ผ
- **Show FVG on 1-Minute Charts**: 1ๅ่ถณใใฃใผใใงใฎFVG่กจ็คบใๆๅนๅ
- ใใใฉใซใ: OFF๏ผ่ฆ่ฆ็ใชๆทท้ใๆธใใใใใฉใผใใณในใๅไธใใใใใ็กๅน๏ผ
- 1ๅ่ถณใงใFVGใ่กจ็คบใใใๅ ดๅใฏๆๅนๅใใฆใใ ใใ
- **Mitigation Source**: FVG็กๅนๅใซ็ตๅคใพใใฏhigh/lowใ้ธๆ
- **Individual Gap Types**: ใใชใใทใฅใพใใฏใใขใชใใทใฅFVGใๅๅฅใซๆๅน/็กๅนๅ
#### ใขใฉใผใ่จญๅฎ
- **Enable Alerts**: ใในใฆใฎใขใฉใผใใฎใในใฟใผในใคใใ
- **Alert on Bullish/Bearish Bounce**: ๅๆนๅใฎๅๅฅๅใๆฟใ
- **Alert on New OB Formation**: ๆฐใใOBใไฝๆใใใใจใใซ้็ฅ
- **Alert on Combined OBs**: ่คๆฐใฎOrder Blockใ1ใคใฎๅผทๅใชใพใผใณใซ็ตฑๅใใใใจใใซ้็ฅ
- **Min OBs for Strong Zone Alert**: ใขใฉใผใใใใชใฌใผใใใใใซๅฟ
่ฆใชๆๅฐOB็ตฑๅๆฐใ่จญๅฎ
- ใใใฉใซใ: 3๏ผ3ใคไปฅไธใฎOB๏ผ
- ็ฏๅฒ: 2-10
- ๅคใ้ซใ = ใใๅณ้ธ็ใๆใๅผทๅใชใณใณใใซใจใณในใพใผใณใฎใฟใใขใฉใผใ
#### ในใฟใคใซ่จญๅฎ
- **Invert Colors**:
- OB: ใใใฉใซใใฏใใชใใทใฅ=่ตคใใใขใชใใทใฅ=้
- FVG: ใใใฉใซใใฏใใชใใทใฅ=ใชใฌใณใธใใใขใชใใทใฅ=ใขใฏใข
- **Extend Zones**: ใพใผใณใๅๆนใซๅปถ้ทใใใใผๆฐ๏ผใใใฉใซใ: 40๏ผ
### ใใฌใผใใฃใณใฐๆฆ็ฅ
#### 1. ็ตฑๅใพใผใณใงใฎๅ่ปขๅๅผ
- ใCombine Overlapping Order Blocksใๆฉ่ฝใๆๅนๅ
- ็ตฑๅใพใผใณ๏ผไพ๏ผใ5m & 15m & 1Hใ๏ผใฏๅผทๅใชใตใใผใ/ใฌใธในใฟใณในใ็คบใ
- ใใใใฎใพใผใณใฏ้่ฆใช่ปขๆ็นใ็คบใใใจใๅคใ
- ไพกๆ ผใ้ซใใชใฅใผใ ใง็ตฑๅใพใผใณใซใฟใใใใใฎใๅพ
ใค
- ๅ่ปข็ขบ่ช๏ผใญใผใฝใฏ่ถณใใฟใผใณใใขใกใณใฟใ ใใคใใผใธใงใณใน๏ผใงใจใณใใชใผ
- ในใใใใญในใฏ็ด่ฟๅฎๅคใ็ด่ฟ้ซๅคใๆๅฎใใ็ญใฎ้ซๅบฆใชๅคๆญใๅฟ
่ฆ๏ผใพใผใณ็ซฏใในใใใใญในใซใใใจๅคๅน
ใๅคงใใใชใฃใฆใใพใใใ๏ผ
#### 2. FVGใใฃใชใณใฐ
- FVGใฏไพกๆ ผใฎ็ฃ็ณใจใใฆๆฉ่ฝ
- ๆชๅ
ๅกซใฎใฎใฃใใใซๅใใฆใใฌใผใ
- ไพกๆ ผใใฎใฃใใใๅฎๅ
จใซๅใใใๆฑบๆธ
#### 3. OB/FVGใไฝฟใฃใใใฌใณใใใฉใญใผ
- ็พๅจใฎใใฌใณใๆนๅใ็นๅฎ
- ใใฌใณใๆนๅใฎOB/FVGใใใฎๅ็บใฎใฟใๅๅผ
- ไธๆใใฌใณใ: ใใชใใทใฅๅ็บใฎใฟใๅๅผ
- ไธ้ใใฌใณใ: ใใขใชใใทใฅๅ็บใฎใฟใๅๅผ
- ไธไฝๆ้่ถณใฎOB๏ผ15ๅใ60ๅ๏ผใใใฌใณใ็ขบ่ชใซไฝฟ็จ
- ไธไฝๆ้่ถณใฎOB๏ผ1ๅใ3ๅ๏ผใ็ฒพๅฏใชใจใณใใชใผใซไฝฟ็จ
- ็งปๅๅนณๅ็ทใใใฌใณใใคใณใธใฑใผใฟใผใจ็ตใฟๅใใใใจๆ่ฏใฎ็ตๆ
## ๆ่ก่ฉณ็ดฐ
### ใชใผใใผใใญใใฏใฎใญใธใใฏ
- ่จญๅฎๅฏ่ฝใชในใคใณใฐ้ทใไฝฟ็จใใฆในใคใณใฐ้ซๅค/ๅฎๅคใๆคๅบ
- ไพกๆ ผ็งปๅๅใฎใใชใฅใผใ ่็ฉใพใผใณใ็นๅฎ
- ใใฌใคใซใผใญใฃใณใใซใงใใฌใคใฏใขใฆใ็ขบ่ชใ่ฟฝ่ทก
- ็กๅนๅใใใใพใผใณใ่ชๅๅ้ค
### ใใงใขใใชใฅใผใฎใฃใใใฎใญใธใใฏ
- ใญใฃใณใใซ1ใจ3ใฎ้ใซใฎใฃใใใใใ3ใญใฃใณใใซใใฟใผใณใ่ญๅฅ
- ๆๅนๆงใฎใใใฎๆๅฐใฎใฃใใใตใคใบใๅฟ
่ฆ
- ไพกๆ ผใใฎใฃใใใ้้ใใ้ใฎใใใฃใฒใผใทใงใณใ่ฟฝ่ทก
- ใฎใฃใใใฎๅผทๅบฆใฎใใใฎใใชใฅใผใ ๅ ้ๅๆ
### ใกใขใชๆ้ฉๅ
- ๆๅคง100ๅใฎใใใฏใน/ใฉใใซ/ใฉใคใณใๅๆ่กจ็คบ
- ใใฌใคใฏใใใใพใผใณใฎ่ชๅใฏใชใผใณใขใใ
- ่คๆฐๆ้่ถณใงใฎใใใฉใผใใณในใซๆ้ฉๅ
- ๅน็็ใช้
ๅ็ฎก็
## ใในใใใฉใฏใใฃใน
1. **ใทใณใใซใซๅงใใ**: ๆๅใฏ2-3ๅใฎๆ้่ถณใใๅงใใ
2. **ใพใผใณๆฐใ่ชฟๆด**: ๅคใใฎๆ้่ถณใๆๅนๅใใๅ ดๅใฏใMediumใใพใใฏใLowใใไฝฟ็จ
3. **ๅ็บใ็ขบ่ช**: ใขใฉใผใใ ใใงใใฌใผใใใใไพกๆ ผ็ขบ่ชใๅพ
ใค
4. **ในใใใใญในใไฝฟ็จ**: ๅฟ
ใใพใผใณๅข็ใ่ถ
ใใฆในใใใใ่จญๅฎ
5. **ใใใฏใในใ**: ใฉใคใใใฌใผใๅใซ้ๅปใใผใฟใงใในใ
6. **ไปใฎใใผใซใจ็ตใฟๅใใ**: ใใฌใณใใคใณใธใฑใผใฟใผใใใชใฅใผใ ใใญใใกใคใซใชใฉใจไฝต็จ
## ๅถ้ไบ้
- ๅๆใซๆๅคง100ๅใฎใใใฏในใ่กจ็คบๅฏ่ฝ
- FVGๆคๅบใฏ็พๅจใฎใใฃใผใๆ้่ถณใซ้ๅฎ
- ๆๅนๅใใๆ้่ถณใๅคใใปใฉใๆ้่ถณใใใใซ่กจ็คบใงใใใพใผใณใๅฐใชใใชใ
- ใใใฏในไธ้ใซ้ใใใจใ้ๅปใฎใพใผใณใๆถใใๅ ดๅใใใ
## ใตใใผใใจใขใใใใผใ
่ณชๅใใใฐใฌใใผใใใพใใฏๆฉ่ฝใชใฏใจในใใซใคใใฆใฏใใคใณใธใฑใผใฟใผใใผใธใซใณใกใณใใใใใไฝๆ่
ใซ้ฃ็ตกใใฆใใ ใใใ
## ใฏใฌใธใใ
ใใฎใคใณใธใฑใผใฟใผใฏใไปฅไธใฎๅชใใTradingViewใคใณใธใฑใผใฟใผใฎๆฉ่ฝใ็ตฑๅใปๅผทๅใใฆใใพใ๏ผ
- ** ()** by @fluxchart
- ใใชใฅใผใ ๆ
ๅ ฑใๅซใใชใผใใผใใญใใฏๆคๅบใญใธใใฏ
- ใใซใใฟใคใ ใใฌใผใ ใฌใณใใชใณใฐๆฉ่ฝ
- ใพใผใณ็กๅนๅใกใฝใใ
- ** ()** by @BigBeluga
- ใใงใขใใชใฅใผใฎใฃใใๆคๅบใขใซใดใชใบใ
- ใใชใฅใผใ ๅ่งฃๅๆ
- ใใใฃใฒใผใทใงใณ่ฟฝ่ทกใทในใใ
ใใฎไปใไปฅไธใฎใณใณใปใใใซๅบใฅใใฆใใพใ๏ผ
- ในใใผใใใใผใณใณใปใใ๏ผSMC๏ผ
- ๆฉ้ขๆ่ณๅฎถใฎใชใผใใผใใญใผ
- ใใชใฅใผใ ใใญใใกใคใซๅๆ
ใชใผใใณใฝใผในใงใใฌใผใใฃใณใฐใณใใฅใใใฃใซ่ฒข็ฎใใฆใใ ใใฃใๅไฝ่
ใฎๆนใ
ใซๆ่ฌใใใใพใใ
## ๅ
่ฒฌไบ้
ใใฎใคใณใธใฑใผใฟใผใฏๆ่ฒ็ฎ็ใฎใฟใงใใ้ๅปใฎใใใฉใผใใณในใฏๅฐๆฅใฎ็ตๆใ็คบใใใฎใงใฏใใใพใใใๅธธใซ้ฉๅใชใชในใฏ็ฎก็ใๅฎ่ทตใใๅคฑใไฝ่ฃใฎใชใ้้กไปฅไธใใชในใฏใซใใใใชใใงใใ ใใใ
---
**ใใผใธใงใณ**: 1.0
**Pine Scriptใใผใธใงใณ**: 6
**ใใฃใผใใฟใคใ**: ใในใฆ
**ๆ้่ถณ**: ใในใฆ๏ผใใซใใฟใคใ ใใฌใผใ ๅๆ๏ผ
---
# MTF OB & FVG Detector with Alerts
## Overview
This indicator detects **Order Blocks (OB)** and **Fair Value Gaps (FVG)** across multiple timeframes and provides real-time alerts for bounces from these zones. It combines advanced volume analysis with multi-timeframe analysis to identify high-probability support and resistance zones.
## Key Features
### 1. Multi-Timeframe Order Block Detection
- **Supported Timeframes**: 1min, 3min, 5min, 15min, 60min
- Each timeframe can be independently enabled/disabled
- Automatically displays OB zones with precise price levels
- Volume information displayed with bull/bear percentage breakdown
- Color-coded by type: Bullish (Blue) / Bearish (Red) - invertible
### 2. Fair Value Gap (FVG) Detection
- Detects bullish and bearish FVG patterns on current chart timeframe
- Displays volume distribution within gaps
- Color-coded: Bullish (Aqua) / Bearish (Orange) - invertible
- Automatically removes mitigated/broken FVGs
- **Note**: FVG is disabled by default on 1-minute charts to reduce visual clutter, but can be enabled via settings.
### 3. Intelligent Break Detection
- **Order Blocks**: Automatically removed when price breaks through the zone
- Bullish OB: Removed when price breaks below
- Bearish OB: Removed when price breaks above
- **Fair Value Gaps**: Removed when price fully mitigates the gap
- Configurable break method: Wick-based or Body-based
### 4. Advanced Alert System
- **Bounce Alerts**: Triggered when price bounces from OB or FVG zones
- Separate alerts for bullish and bearish bounces
- Includes timeframe information in alert message
- Monitors all enabled timeframes simultaneously
- **New OB Formation Alerts**: Notified when a new Order Block is formed
- **Combined Zone Alerts**: Notified when multiple OBs are combined
- **Configurable threshold**: Set minimum number of OBs (default: 3, range: 2-10)
- Indicates strong confluence zones across multiple timeframes
- Signals high-probability support/resistance areas
- More OBs combined = stronger zone = higher alert priority
- All alerts can be individually enabled/disabled
### 5. Visual Customization
- **Text Display**: Left-aligned text starting 3 bars from current time
- **Zone Extension**: 40 bars forward (configurable)
- **Color Inversion**:
- OB: Toggle between Blue/Red or Red/Blue
- FVG: Toggle between Aqua/Orange or Orange/Aqua
- **Lower Timeframe Display**: Optional display of 1min and 3min zones
### 6. Volume Analysis
- Each OB displays total volume with bull/bear ratio
- Percentage breakdown shows dominant volume side
- FVG shows volume distribution across the gap
#### Understanding the Text Display
**Order Block Text Format:** ` 5m OB 12.5M (85%)`
- ** **: Appears when multiple timeframes are merged (optional display)
- **5m OB**: Timeframe identifier (5-minute Order Block)
- **12.5M**: Total volume traded in the OB zone (always in millions with 1 decimal place)
- Examples: 12.5M, 0.8M, 156.3M
- **(85%)**: Percentage of dominant (stronger) volume side
- If bullish: Shows proportion of bullish volume (stronger side)
- If bearish: Shows proportion of bearish volume (stronger side)
- Higher percentage = stronger OB (more one-sided volume)
**Fair Value Gap Text Format:** `15m FVG 8.3M (85%)`
- **15m FVG**: Timeframe identifier (15-minute Fair Value Gap)
- **8.3M**: Total volume in the FVG (always in millions with 1 decimal place)
- Examples: 8.3M, 1.2M, 45.7M
- **(85%)**: Percentage of dominant (stronger) volume side
- If bullish: Shows proportion of bullish volume (stronger side)
- If bearish: Shows proportion of bearish volume (stronger side)
- Higher percentage = stronger FVG (more one-sided volume)
## How to Use
### Basic Setup
1. **Add to Chart**: Search for "MTF OB & FVG detector" in TradingView indicators
2. **Select Timeframes**: Enable desired timeframes (default: 5min, 15min, 60min)
3. **Configure Alerts**: Enable alerts for bounces and new OB formations
### Settings Guide
#### Multi-Timeframe Settings
- **Show Lower Timeframes**: Enable to show 1min and 3min zones (default: ON)
- **Individual Timeframes**: Toggle each timeframe (1m, 3m, 5m, 15m, 60m)
- Recommended: Use 2-3 timeframes to avoid chart clutter
#### General Configuration
- **Zone Count**: Number of OBs per timeframe (Low/Medium/High)
- Medium (5 zones) recommended for multiple timeframes
- High (10 zones) for detailed analysis on fewer timeframes
- **Swing Length**: Sensitivity for OB detection (default: 3)
- Lower values = smaller, more frequent OBs
- Higher values = larger, fewer OBs
- **Break Detection Method**: Choose Wick or Body for OB invalidation
#### Fair Value Gap Settings
- **Show Fair Value Gaps**: Toggle FVG display
- Default: ON (for all timeframes)
- **Show FVG on 1-Minute Charts**: Enable FVG display on 1-minute charts
- Default: OFF (disabled to reduce visual clutter and improve performance)
- Enable if you want to see FVG on 1-minute charts
- **Mitigation Source**: Choose close price or high/low for FVG invalidation
- **Individual Gap Types**: Enable/disable bullish or bearish FVGs separately
#### Alert Settings
- **Enable Alerts**: Master switch for all alerts
- **Alert on Bullish/Bearish Bounce**: Separate toggles for each direction
- **Alert on New OB Formation**: Get notified when new OBs are created
- **Alert on Combined OBs**: Get notified when multiple Order Blocks are combined into one powerful zone
- **Min OBs for Strong Zone Alert**: Set the minimum number of OBs that must be combined to trigger the alert
- Default: 3 (three or more OBs)
- Range: 2-10
- Higher values = more selective, only alerting on the strongest confluence zones
#### Style Settings
- **Invert Colors**:
- OB: Default is Bullish=Red, Bearish=Blue
- FVG: Default is Bullish=Orange, Bearish=Aqua
- **Extend Zones**: Number of bars to extend zones forward (default: 40)
### Trading Strategies
#### 1. Reversal Trading at Combined Zones
- Enable "Combine Overlapping Order Blocks" feature
- Combined zones (e.g., "5m & 15m & 1H") indicate strong support/resistance
- These zones often mark significant turning points
- Wait for price to touch the combined zone with high volume
- Enter on reversal confirmation (candlestick patterns, momentum divergence)
- Stop-loss requires advanced judgment such as using recent lows/highs (placing stops at zone edges results in wide ranges)
#### 2. FVG Filling
- FVGs act as magnets for price
- Trade towards unfilled gaps as targets
- Exit when price fully fills the gap
#### 3. Trend Following with OB/FVG
- Identify the current trend direction
- Only take bounces from OBs/FVGs in trend direction
- In uptrend: Trade only bullish bounces
- In downtrend: Trade only bearish bounces
- Use higher timeframe OBs (15min, 60min) for trend confirmation
- Use lower timeframe OBs (1min, 3min) for precise entries
- Combine with moving averages or trend indicators for best results
## Technical Details
### Order Block Logic
- Detects swing highs/lows using configurable swing length
- Identifies volume accumulation zones before price moves
- Tracks breakout confirmation with breaker candles
- Automatically removes invalidated zones
### Fair Value Gap Logic
- Identifies 3-candle patterns with gap between candles 1 and 3
- Minimum gap size required for validity
- Tracks mitigation as price moves through the gap
- Volume-weighted analysis for gap strength
### Memory Optimization
- Maximum 100 boxes/labels/lines simultaneously
- Automatic cleanup of broken zones
- Optimized for performance with multiple timeframes
- Efficient array management
## Best Practices
1. **Start Simple**: Begin with 2-3 timeframes before adding more
2. **Adjust Zone Count**: Use "Medium" or "Low" when enabling many timeframes
3. **Confirm Bounces**: Don't trade on alerts alone - wait for price confirmation
4. **Use Stop Losses**: Always set stops beyond the zone boundaries
5. **Backtest**: Test the indicator on historical data before live trading
6. **Combine with Other Tools**: Use with trend indicators, volume profile, etc.
## Limitations
- Maximum of 100 boxes can be displayed simultaneously
- FVG detection is limited to current chart timeframe
- More timeframes enabled = fewer zones per timeframe can be shown
- Historical zones may disappear if box limit is reached
## Support and Updates
For questions, bug reports, or feature requests, please comment on the indicator page or contact the author.
## Credits
This indicator integrates and enhances features from the following excellent TradingView indicators:
- ** ()** by @fluxchart
- Order Block detection logic with volumetric information
- Multi-timeframe rendering capabilities
- Zone invalidation methods
- ** ()** by @BigBeluga
- Fair Value Gap detection algorithm
- Volume decomposition analysis
- Mitigation tracking system
Additional concepts based on:
- Smart Money Concepts (SMC)
- Institutional Order Flow
- Volume Profile Analysis
Special thanks to the original authors for their open-source contributions to the trading community.
## Disclaimer
This indicator is for educational purposes only. Past performance is not indicative of future results. Always practice proper risk management and never risk more than you can afford to lose.
---
**Version**: 1.0
**Pine Script Version**: 6
**Chart Type**: Any
**Timeframe**: Any (multi-timeframe analysis)
3D Institutional Battlefield [SurgeGuru]Professional Presentation: 3D Institutional Flow Terrain Indicator
Overview
The 3D Institutional Flow Terrain is an advanced trading visualization tool that transforms complex market structure into an intuitive 3D landscape. This indicator synthesizes multiple institutional data pointsโvolume profiles, order blocks, liquidity zones, and voidsโinto a single comprehensive view, helping you identify high-probability trading opportunities.
Key Features
๐ฅ Camera & Projection Controls
Yaw & Pitch: Adjust viewing angles (0-90ยฐ) for optimal perspective
Scale Controls: Fine-tune X (width), Y (depth), and Z (height) dimensions
Pro Tip: Increase Z-scale to amplify terrain features for better visibility
๐ Grid & Surface Configuration
Resolution: Adjust X (16-64) and Y (12-48) grid density
Visual Elements: Toggle surface fill, wireframe, and node markers
Optimization: Higher resolution provides more detail but requires more processing power
๐ Data Integration
Lookback Period: 50-500 bars of historical analysis
Multi-Source Data: Combine volume profile, order blocks, liquidity zones, and voids
Weighted Analysis: Each data source contributes proportionally to the terrain height
How to Use the Frontend
๐ Price Line Tracking (Your Primary Focus)
The yellow price line is your most important guide:
Monitor Price Movement: Track how the yellow line interacts with the 3D terrain
Identify Key Levels: Watch for these critical interactions:
Order Blocks (Green/Red Zones):
When yellow price line enters green zones = Bullish order block
When yellow price line enters red zones = Bearish order block
These represent institutional accumulation/distribution areas
Liquidity Voids (Yellow Zones):
When yellow price line enters yellow void areas = Potential acceleration zones
Voids indicate price gaps where minimal trading occurred
Price often moves rapidly through voids toward next liquidity pool
Terrain Reading:
High Terrain Peaks: High volume/interest areas (support/resistance)
Low Terrain Valleys: Low volume areas (potential breakout zones)
Color Coding:
Green terrain = Bullish volume dominance
Red terrain = Bearish volume dominance
Purple = Neutral/transition areas
๐ Volume Profile Integration
POC (Point of Control): Automatically marks highest volume level
Volume Bins: Adjust granularity (10-50 bins)
Height Weight: Control how much volume affects terrain elevation
๐๏ธ Order Block Detection
Detection Length: 5-50 bar lookback for block identification
Strength Weighting: Recent blocks have greater impact on terrain
Candle Body Option: Use full candles or body-only for block definition
๐ง Liquidity Zone Tracking
Multiple Levels: Track 3-10 key liquidity zones
Buy/Sell Side: Different colors for bid/ask liquidity
Strength Decay: Older zones have diminishing terrain impact
๐ Liquidity Void Identification
Threshold Multiplier: Adjust sensitivity (0.5-2.0)
Height Amplification: Voids create significant terrain depressions
Acceleration Zones: Price typically moves quickly through void areas
Practical Trading Application
Bullish Scenario:
Yellow price line approaches green order block terrain
Price finds support in elevated bullish volume areas
Terrain shows consistent elevation through key levels
Bearish Scenario:
Yellow price line struggles at red order block resistance
Price falls through liquidity voids toward lower terrain
Bearish volume peaks dominate the landscape
Breakout Setup:
Yellow price line consolidates in flat terrain
Minimal resistance (low terrain) in projected direction
Clear path toward distant liquidity zones
Pro Tips
Start Simple: Begin with default settings, then gradually customize
Focus on Yellow Line: Your primary indicator of current price position
Combine Timeframes: Use the same terrain across multiple timeframes for confluence
Volume Confirmation: Ensure terrain peaks align with actual volume spikes
Void Anticipation: When price enters voids, prepare for potential rapid movement
Order Blocks & Voids Architecture
Order Blocks Calculation
Trigger: Price breaks fractal swing points
Bullish OB: When close > swing high โ find lowest low in lookback period
Bearish OB: When close < swing low โ find highest high in lookback period
Strength: Based on price distance from block extremes
Storage: Global array maintains last 50 blocks with FIFO management
Liquidity Voids Detection
Trigger: Price gaps exceeding ATR threshold
Bull Void: Low - high > (ATR200 ร multiplier)
Bear Void: Low - high > (ATR200 ร multiplier)
Validation: Close confirms gap direction
Storage: Global array maintains last 30 voids
Key Design Features
Real-time Updates: Calculated every bar, not just on last bar
Global Persistence: Arrays maintain state across executions
FIFO Management: Automatic cleanup of oldest entries
Configurable Sensitivity: Adjustable lookback periods and thresholds
Scientific Testing Framework
Hypothesis Testing
Primary Hypothesis: 3D terrain visualization improves detection of institutional order flow vs traditional 2D charts
Testable Metrics:
Prediction Accuracy: Does terrain structure predict future support/resistance?
Reaction Time: Faster identification of key levels vs conventional methods
False Positive Reduction: Lower rate of failed breakouts/breakdowns
Control Variables
Market Regime: Trending vs ranging conditions
Asset Classes: Forex, equities, cryptocurrencies
Timeframes: M5 to H4 for intraday, D1 for swing
Volume Conditions: High vs low volume environments
Data Collection Protocol
Terrain Features to Quantify:
Slope gradient changes at price inflection points
Volume peak clustering density
Order block terrain elevation vs subsequent price action
Void depth correlation with momentum acceleration
Control Group: Traditional support/resistance + volume profile
Experimental Group: 3D Institutional Flow Terrain
Statistical Measures
Signal-to-Noise Ratio: Terrain features vs random price movements
Lead Time: Terrain formation ahead of price confirmation
Effect Size: Performance difference between groups (Cohen's d)
Statistical Power: Sample size requirements for significance
Validation Methodology
Blind Testing:
Remove price labels from terrain screenshots
Have traders identify key levels from terrain alone
Measure accuracy vs actual price action
Backtesting Framework:
Automated terrain feature extraction
Correlation with future price reversals/breakouts
Monte Carlo simulation for significance testing
Expected Outcomes
If hypothesis valid:
Significant improvement in level prediction accuracy (p < 0.05)
Reduced latency in institutional level identification
Higher risk-reward ratios on terrain-confirmed trades
Research Questions:
Does terrain elevation reliably indicate institutional interest zones?
Are liquidity voids statistically significant momentum predictors?
Does multi-timeframe terrain analysis improve signal quality?
How does terrain persistence correlate with level strength?
LuxAlgo BigBeluga hapharmonic
ORDER BLCOK custom strategy# OB Matrix Strategy - Documentation
**Version:** 1.0
**Author:** HPotter
**Date:** 31/07/2017
The **OB Matrix Strategy** is based on the identification of **bullish and bearish Order Blocks** and the management of conditional orders with multiple Take Profit (TP) and Stop Loss (SL) levels. It uses trend filters, ATR, and percentage-based risk management.
---
## 1. Main Parameters
### Strategy
- `initial_capital`: 50
- `default_qty_type`: percentage of capital
- `default_qty_value`: 10
### Money Management
- `rr_threshold`: minimum Risk/Reward threshold to open a trade
- `risk_percent`: percentage of capital to risk per trade (default 2%)
- `maxPendingBars`: maximum number of bars for a pending order
- `maxBarsOpen`: maximum number of bars for an open position
- `qty_tp1`, `qty_tp2`, `qty_tp3`: quantity percentages for multiple TPs
---
## 2. Order Block Identification
### Order Block Parameters
- `obLookback`: number of bars to identify an Order Block
- `obmode`: method to calculate the block (`Full` or `Breadth`)
- `obmiti`: method to determine block mitigation (`Close`, `Wick`, `Avg`)
- `obMaxBlocks`: maximum number of Order Blocks displayed
### Main Variables
- `bullBlocks`: array of bullish blocks
- `bearBlocks`: array of bearish blocks
- `last_bull_volume`, `last_bear_volume`: volume of the last block
- `dom_block`: dominant block type (Bullish/Bearish/None)
- `block_strength`: block strength (normalized volume)
- `price_distance`: distance between current price and nearest block
---
## 3. Visual Parameters
- `Width`: line thickness for swing high/low
- `amountOfBoxes`: block grid segments
- `showBorder`: show block borders
- `borderWidth`: width of block borders
- `showVolume`: display volume inside blocks
- `volumePosition`: vertical position of volume text
Customizable colors:
- `obHighVolumeColor`, `obLowVolumeColor`, `obBearHighVolumeColor`, `obBearLowVolumeColor`
- `obBullBorderColor`, `obBearBorderColor`
- `obBullFillColor`, `obBearFillColor`
- `volumeTextColor`
---
## 4. Screener Table
- `showScreener`: display the screener table
- `tablePosition`: table position (`Top Left`, `Top Right`, `Bottom Left`, `Bottom Right`)
- `tableSize`: table size (`Small`, `Normal`, `Large`)
The table shows:
- Symbol, Timeframe
- Type and status of Order Block
- Number of retests
- Bullish and bearish volumes
---
## 5. Trend Filters
- EMA as a trend filter (`emaPeriod`, default 223)
- `bullishTrend` if close > EMA
- `bearishTrend` if close < EMA
---
## 6. ATR and Swing Points
- ATR calculated with a customizable period (`atrLength`)
- Swing High/Low for SL/TP calculation
- `f_getSwingTargets` function to calculate SL and TP based on direction
---
## 7. Trade Logic
### Buy Limit on Bullish OB
- Conditions:
- New bullish block
- Uptrend
- RR > threshold (`rr_threshold`)
- SL: `bullishOBPrice * (1 - atr * atrMultiplier)`
- Multiple TPs: TP1 (50%), TP2 (80%), TP3 (100% max)
- Quantity calculation based on percentage risk
### Sell Limit on Bearish OB
- Conditions:
- New bearish block
- Downtrend
- RR > threshold (`rr_threshold`)
- SL: `bearishOBPrice * (1 + atr * atrMultiplier)`
- Multiple TPs: TP1 (50%), TP2 (80%), TP3 (100% max)
- Quantity calculation based on percentage risk
---
## 8. Order Management and Timeout
- Close pending orders after `maxPendingBars` bars
- Close open positions after `maxBarsOpen` bars
- Label management for open orders
---
## 9. Alert Conditions
- `bull_touch`: price inside maximum bullish volume zone
- `bear_touch`: price inside maximum bearish volume zone
- `bull_reject`: confirmation of bullish zone rejection
- `bear_reject`: confirmation of bearish zone rejection
- `new_bull`: new bullish block
- `new_bear`: new bearish block
---
## 10. Level Calculation
- Swing levels based on selected timeframe (`SelectPeriod`)
- `xHigh` and `xLow` for S1 and R1 calculation
- Levels plotted on chart
---
## 11. Take Profit / Stop Loss
- Extended horizontal lines (`extendBars`) to visualize TP and SL
- Customizable colors (`tpColor`, `slColor`)
---
## 12. Notes
- Complete script based on Pine Script v5
- Advanced graphical management with boxes, lines, labels
- Dynamically displays volumes and Order Blocks
- Integrated internal screener
---
### End of Documentation
IDKFAIDKFA - Advanced Order Blocks & Volume Profile with Market Structure Analysis
Why IDKFA?
Named after the legendary DOOM cheat code that gives players "all weapons and full ammo," IDKFA provides traders with a comprehensive arsenal of market analysis tools. Just as the cheat code arms players with everything needed for combat, this indicator equips traders with essential market structure tools: Order Blocks, Volume Profile, LVN/HVN areas, Fibonacci retracements, and intelligent buy/sell signals - all in one unified system.
Core Features
Order Blocks Detection
Automatically identifies institutional order blocks using pivot high/low analysis
Extends blocks dynamically until price interaction occurs
Bullish blocks (demand zones) and bearish blocks (supply zones)
Customizable opacity and extend functionality
Advanced Volume Profile
Real-time volume profile calculation for multiple session types
Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL)
Mode 1: Side-by-side bull/bear volume display
Mode 2: Overlapped volume display with percentage analysis
Shows buying vs selling pressure at each price level
LVN/HVN Area Detection
Low Volume Nodes (LVN): Areas below VAL where price moves quickly
High Volume Nodes (HVN): Areas above VAH with strong resistance
NPOC (Naked Point of Control): Single print areas within Value Area
Volume-based gradient coloring shows relative activity levels
Smart Fibonacci Retracements
Auto-detects trend direction for proper fibonacci orientation
Dynamic color coding: Red levels in uptrends, Gold in downtrends
Special 88.6% level turns lime green in downtrends
Key levels: 23.6%, 38.2%, 50%, 61.8%, 65%, 78.6%, 88.6%
Intelligent Signal System
Works best on higher timeframes
Identifies high-probability reversal setups at key levels
Buy signals: Large bearish rejection followed by bullish reclaim
Sell signals: Large bullish rejection followed by bearish breakdown
Signals only trigger near significant support/resistance areas
Signal Analysis & Usage Guidelines
Buy Signal Mechanics
The buy signal triggers when:
Previous candle shows significant bearish movement (minimum ATR multiplier)
Current candle reclaims a configurable percentage of the previous candle's range
Price is near a key support level (order blocks, fibonacci, volume levels)
Sell Signal Mechanics
The sell signal triggers when:
Previous candle shows significant bullish movement (minimum ATR multiplier)
Current candle rejects below a configurable percentage of the previous candle's range
Price is near a key resistance level (order blocks, fibonacci, volume levels)
When to TAKE Signals
High Probability Buy Signals:
Signal appears AT or BELOW the VAL (Value Area Low)
Signal occurs at bullish order block confluence
Price is in LVN area below VAL (momentum acceleration zone)
Signal aligns with fibonacci 61.8% or 78.6% support
Multiple session POC levels provide support confluence
Previous session's VAL acting as current support
High Probability Sell Signals:
Signal appears AT or ABOVE the VAH (Value Area High)
Signal occurs at bearish order block confluence
Price is in HVN area above VAH (heavy resistance zone)
Signal aligns with fibonacci 61.8% or 78.6% resistance
Multiple session POC levels provide resistance confluence
Previous session's VAH acting as current resistance
When to AVOID Signals
Avoid Buy Signals When:
Signal appears ABOVE the VAH (buying into resistance)
Price is in HVN red zones (high volume resistance areas)
No clear support structure below current price
Volume profile shows heavy selling pressure (high bear percentages)
Signal occurs during low-volume periods between major sessions
Multiple bearish order blocks exist below current price
Avoid Sell Signals When:
Signal appears BELOW the VAL (selling into support)
Price is in LVN green zones (momentum could continue)
No clear resistance structure above current price
Volume profile shows heavy buying pressure (high bull percentages)
Signal occurs during Asian session ranges without clear direction
Multiple bullish order blocks exist above current price
Volume Profile Context for Signals
Understanding Bull/Bear Percentages:
70%+ Bull dominance at a level = Strong support expected
70%+ Bear dominance at a level = Strong resistance expected
50/50 Split = Neutral zone, less predictable
Use percentages to gauge conviction behind moves
POC (Point of Control) Interactions:
Signals above POC in uptrend = Higher probability
Signals below POC in downtrend = Higher probability
Signals against POC bias require extra confirmation
POC often acts as magnetic level for price return
Trading Strategies
Strategy 1: VAL/VAH Bounce Strategy
Wait for price to approach VAL (support) or VAH (resistance)
Look for signal confirmation at these critical levels
Enter with tight stops beyond the Value Area
Target opposite boundary or next session's levels
Strategy 2: Order Block + Volume Confluence
Identify order block alignment with VAL/VAH
Wait for signal within the confluence zone
Enter on signal with stop beyond order block
Use LVN areas as acceleration zones for targets
Strategy 3: LVN/HVN Strategy
LVN (Green) Areas: "Go Zones" - expect quick price movement through low volume
HVN (Red) Areas: "Stop Zones" - expect resistance and potential reversals
NPOC Areas: "Fill Zones" - price often returns to fill single print gaps
Strategy 4: Multi-Session Analysis
Use Daily/Weekly for major structure context
Use 4H for intermediate levels
Use 1H for precise entry timing
Ensure all timeframes align before taking signals
Strategy 5: Fibonacci + Volume Profile
Buy signals at 61.8% or 78.6% fibonacci near VAL
Sell signals at 61.8% or 78.6% fibonacci near VAH
Use 88.6% level as final support/resistance before major moves
50% level often aligns with POC for confluence
Signal Quality Assessment
Grade A Signals (Highest Probability):
Signal at VAL/VAH with order block confluence
Fibonacci level alignment (61.8%, 78.6%)
Volume profile shows 70%+ dominance in signal direction
Multiple timeframe structure alignment
Signal occurs during high-volume sessions (London/NY)
Grade B Signals (Moderate Probability):
Signal near POC with some confluence
Fibonacci 50% or 38.2% alignment
Mixed volume profile readings (50-70% dominance)
Some timeframe alignment present
Signal during overlap sessions
Grade C Signals (Lower Probability):
Signal with minimal confluence
Weak fibonacci alignment or none
Volume profile neutral or against signal
Conflicting timeframe signals
Signal during low-volume periods
Risk Management Guidelines
Position Sizing Based on Signal Quality:
Grade A: Standard position size
Grade B: Reduced position size (50-75%)
Grade C: Minimal position size (25%) or skip entirely
Stop Loss Placement:
Beyond order block boundaries
Outside Value Area (VAL/VAH)
Below/above fibonacci confluence levels
Account for session volatility ranges
Profit Targets:
First target: Opposite VAL/VAH boundary
Second target: Next session's key levels
Final target: Major order blocks or fibonacci extensions
Credits & Attribution
Original components derived from:
Market Sessions & Volume Profile by ยฉ Leviathan (Mozilla Public License 2.0)
Volume Profile elements inspired by @LonesomeTheBlue's volume profile script
Pivot Order Blocks by TradingWolf / ยฉ MensaTrader (Mozilla Public License 2.0)
Auto Fibonacci Retracement code (public domain)
Significant enhancements and modifications include:
Advanced LVN/HVN detection and visualization
Bull/Bear percentage analysis for Mode 2/3
Comprehensive alert system with market context
Integrated buy/sell signals at key levels
Performance optimizations and extended session support
Enhanced Mode 2/3 with percentage pressure analysis
Important Disclaimers
This indicator is a technical analysis tool designed for educational purposes. It does not provide financial advice, investment recommendations, or trading signals that guarantee profits. All trading involves substantial risk of loss, and past performance does not guarantee future results. Users should conduct their own research, understand the risks involved, and consider consulting with qualified financial advisors before making trading decisions. The signals and analysis provided are based on historical price patterns and volume data, which may not predict future market movements accurately.
Best Practices
Never trade signals blindly - always consider volume profile context
Wait for confluence between multiple tools before entering
Respect the Value Area - avoid buying above VAH or selling below VAL
Use session context - Asian ranges vs London/NY breakouts
Practice proper risk management - position size based on signal quality
Understand the bigger picture - use multiple timeframes for context
Remember: Like the IDKFA cheat code, having all the tools doesn't guarantee success. The key is learning to use them together effectively and understanding when NOT to take a signal is often more important than knowing when to take one.
FVG LevelsFVG Levels Indicator Description
The FVG Levels indicator dynamically identifies and displays key price zones that may represent fair value gaps and order block areas, helping traders to visually pinpoint potential support and resistance levels directly on the chart.
Key Features
Order Block Identification:
The indicator detects bullish and bearish order blocks by analyzing specific candle patterns. For bullish zones, it checks if a candle two bars ago was bullish (close greater than open) coupled with a subsequent gap condition. Similarly, bearish zones are identified when bearish candle conditions are met with an appropriate gap.
Dynamic Zone Calculation:
It computes critical levels such as the highest highs, lowest lows, highest lows, and lowest highs over a series of recent bars. These levels define the boundaries of potential buy and sell zones and adjust dynamically as new price data comes in.
Visual Representation:
Buy zones are plotted in lime and sell zones in yellow, with the indicator filling the areas between the high and low lines to create clear, shaded bands. This visual aid helps in quickly recognizing zones of potential price reaction.
Chart Overlay:
Designed to work as an overlay, the indicator integrates directly onto your price chart, allowing for seamless correlation between price action and identified zones.
How It Works
Bullish Zones:
When a bullish candle (with the candle's close above its open) is detected along with a significant gap, the indicator marks the upper and lower boundaries of the bullish order block. It further refines these levels by tracking the lowest low and highest high over recent bars to enhance the zone's definition.
Bearish Zones:
In a similar manner, the indicator calculates bearish order blocks by confirming bearish candle conditions and corresponding gap criteria. It then updates the bearish zone levels and computes the highest high and lowest low to establish clear sell zone boundaries.
Usage
Traders can use the FVG Levels indicator to:
Identify potential entry and exit points by observing where price may reverse or consolidate.
Recognize fair value gaps or imbalances that often act as magnet points for price action.
Enhance risk management by using the dynamically calculated zones to set stop-losses or take-profits.
lib_smcLibrary "lib_smc"
This is an adaptation of LuxAlgo's Smart Money Concepts indicator with numerous changes. Main changes include integration of object based plotting, plenty of performance improvements, live tracking of Order Blocks, integration of volume profiles to refine Order Blocks, and many more.
This is a library for developers, if you want this converted into a working strategy, let me know.
buffer(item, len, force_rotate)
โโParameters:
โโโโ item (float)
โโโโ len (int)
โโโโ force_rotate (bool)
buffer(item, len, force_rotate)
โโParameters:
โโโโ item (int)
โโโโ len (int)
โโโโ force_rotate (bool)
buffer(item, len, force_rotate)
โโParameters:
โโโโ item (Profile type from robbatt/lib_profile/32)
โโโโ len (int)
โโโโ force_rotate (bool)
swings(len)
โโINTERNAL: detect swing points (HH and LL) in given range
โโParameters:
โโโโ len (simple int) : range to check for new swing points
โโReturns: values are the price level where and if a new HH or LL was detected, else na
method init(this)
โโNamespace types: OrderBlockConfig
โโParameters:
โโโโ this (OrderBlockConfig)
method delete(this)
โโNamespace types: OrderBlock
โโParameters:
โโโโ this (OrderBlock)
method clear_broken(this, broken_buffer)
โโINTERNAL: delete internal order blocks box coordinates if top/bottom is broken
โโNamespace types: map
โโParameters:
โโโโ this (map)
โโโโ broken_buffer (map)
โโReturns: any_bull_ob_broken, any_bear_ob_broken, broken signals are true if an according order block was broken/mitigated, broken contains the broken block(s)
create_ob(id, mode, start_t, start_i, top, end_t, end_i, bottom, break_price, early_confirmation_price, config, init_plot, force_overlay)
โโINTERNAL: set internal order block coordinates
โโParameters:
โโโโ id (int)
โโโโ mode (int) : 1: bullish, -1 bearish block
โโโโ start_t (int)
โโโโ start_i (int)
โโโโ top (float)
โโโโ end_t (int)
โโโโ end_i (int)
โโโโ bottom (float)
โโโโ break_price (float)
โโโโ early_confirmation_price (float)
โโโโ config (OrderBlockConfig)
โโโโ init_plot (bool)
โโโโ force_overlay (bool)
โโReturns: signals are true if an according order block was broken/mitigated
method align_to_profile(block, align_edge, align_break_price)
โโNamespace types: OrderBlock
โโParameters:
โโโโ block (OrderBlock)
โโโโ align_edge (bool)
โโโโ align_break_price (bool)
method create_profile(block, opens, tops, bottoms, closes, values, resolution, vah_pc, val_pc, args, init_calculated, init_plot, force_overlay)
โโNamespace types: OrderBlock
โโParameters:
โโโโ block (OrderBlock)
โโโโ opens (array)
โโโโ tops (array)
โโโโ bottoms (array)
โโโโ closes (array)
โโโโ values (array)
โโโโ resolution (int)
โโโโ vah_pc (float)
โโโโ val_pc (float)
โโโโ args (ProfileArgs type from robbatt/lib_profile/32)
โโโโ init_calculated (bool)
โโโโ init_plot (bool)
โโโโ force_overlay (bool)
method create_profile(block, resolution, vah_pc, val_pc, args, init_calculated, init_plot, force_overlay)
โโNamespace types: OrderBlock
โโParameters:
โโโโ block (OrderBlock)
โโโโ resolution (int)
โโโโ vah_pc (float)
โโโโ val_pc (float)
โโโโ args (ProfileArgs type from robbatt/lib_profile/32)
โโโโ init_calculated (bool)
โโโโ init_plot (bool)
โโโโ force_overlay (bool)
track_obs(swing_len, hh, ll, top, btm, bull_bos_alert, bull_choch_alert, bear_bos_alert, bear_choch_alert, min_block_size, max_block_size, config_bull, config_bear, init_plot, force_overlay, enabled, extend_blocks, clear_broken_buffer_before, align_edge_to_value_area, align_break_price_to_poc, profile_args_bull, profile_args_bear, use_soft_confirm, soft_confirm_offset, use_retracements_with_FVG_out)
โโParameters:
โโโโ swing_len (int)
โโโโ hh (float)
โโโโ ll (float)
โโโโ top (float)
โโโโ btm (float)
โโโโ bull_bos_alert (bool)
โโโโ bull_choch_alert (bool)
โโโโ bear_bos_alert (bool)
โโโโ bear_choch_alert (bool)
โโโโ min_block_size (float)
โโโโ max_block_size (float)
โโโโ config_bull (OrderBlockConfig)
โโโโ config_bear (OrderBlockConfig)
โโโโ init_plot (bool)
โโโโ force_overlay (bool)
โโโโ enabled (bool)
โโโโ extend_blocks (simple bool)
โโโโ clear_broken_buffer_before (simple bool)
โโโโ align_edge_to_value_area (simple bool)
โโโโ align_break_price_to_poc (simple bool)
โโโโ profile_args_bull (ProfileArgs type from robbatt/lib_profile/32)
โโโโ profile_args_bear (ProfileArgs type from robbatt/lib_profile/32)
โโโโ use_soft_confirm (simple bool)
โโโโ soft_confirm_offset (float)
โโโโ use_retracements_with_FVG_out (simple bool)
method draw(this, config, extend_only)
โโNamespace types: OrderBlock
โโParameters:
โโโโ this (OrderBlock)
โโโโ config (OrderBlockConfig)
โโโโ extend_only (bool)
method draw(blocks, config)
โโINTERNAL: plot order blocks
โโNamespace types: array
โโParameters:
โโโโ blocks (array)
โโโโ config (OrderBlockConfig)
method draw(blocks, config)
โโINTERNAL: plot order blocks
โโNamespace types: map
โโParameters:
โโโโ blocks (map)
โโโโ config (OrderBlockConfig)
method cleanup(this, ob_bull, ob_bear)
โโremoves all Profiles that are older than the latest OrderBlock from this profile buffer
โโNamespace types: array
โโParameters:
โโโโ this (array type from robbatt/lib_profile/32)
โโโโ ob_bull (OrderBlock)
โโโโ ob_bear (OrderBlock)
_plot_swing_points(mode, x, y, show_swing_points, linecolor_swings, keep_history, show_latest_swings_levels, trail_x, trail_y, trend)
โโINTERNAL: plot swing points
โโParameters:
โโโโ mode (int) : 1: bullish, -1 bearish block
โโโโ x (int) : x-coordingate of swing point to plot (bar_index)
โโโโ y (float) : y-coordingate of swing point to plot (price)
โโโโ show_swing_points (bool) : switch to enable/disable plotting of swing point labels
โโโโ linecolor_swings (color) : color for swing point labels and lates level lines
โโโโ keep_history (bool) : weater to remove older swing point labels and only keep the most recent
โโโโ show_latest_swings_levels (bool)
โโโโ trail_x (int) : x-coordinate for latest swing point (bar_index)
โโโโ trail_y (float) : y-coordinate for latest swing point (price)
โโโโ trend (int) : the current trend 1: bullish, -1: bearish, to determine Strong/Weak Low/Highs
_pivot_lvl(mode, trend, hhll_x, hhll, super_hhll, filter_insignificant_internal_breaks)
โโINTERNAL: detect whether a structural level has been broken and if it was in trend direction (BoS) or against trend direction (ChoCh), also track the latest high and low swing points
โโParameters:
โโโโ mode (simple int) : detect 1: bullish, -1 bearish pivot points
โโโโ trend (int) : current trend direction
โโโโ hhll_x (int) : x-coordinate of newly detected hh/ll (bar_index)
โโโโ hhll (float) : y-coordinate of newly detected hh/ll (price)
โโโโ super_hhll (float) : level/y-coordinate of superior hhll (if this is an internal structure pivot level)
โโโโ filter_insignificant_internal_breaks (bool) : if true pivot points / internal structure will be ignored where the wick in trend direction is longer than the opposite (likely to push further in direction of main trend)
โโReturns: coordinates of internal structure that has been broken (x,y): start of structure, (trail_x, trail_y): tracking hh/ll after structure break, (bos_alert, choch_alert): signal whether a structural level has been broken
_plot_structure(x, y, is_bos, is_choch, line_color, line_style, label_style, label_size, keep_history)
โโINTERNAL: plot structural breaks (BoS/ChoCh)
โโParameters:
โโโโ x (int) : x-coordinate of newly broken structure (bar_index)
โโโโ y (float) : y-coordinate of newly broken structure (price)
โโโโ is_bos (bool) : whether this structural break was in trend direction
โโโโ is_choch (bool) : whether this structural break was against trend direction
โโโโ line_color (color) : color for the line connecting the structural level and the breaking candle
โโโโ line_style (string) : style (line.style_dashed/solid) for the line connecting the structural level and the breaking candle
โโโโ label_style (string) : style (label.style_label_down/up) for the label above/below the line connecting the structural level and the breaking candle
โโโโ label_size (string) : size (size.small/tiny) for the label above/below the line connecting the structural level and the breaking candle
โโโโ keep_history (bool) : weater to remove older swing point labels and only keep the most recent
structure_values(length, super_hh, super_ll, filter_insignificant_internal_breaks)
โโdetect (and plot) structural breaks and the resulting new trend
โโParameters:
โโโโ length (simple int) : lookback period for swing point detection
โโโโ super_hh (float) : level/y-coordinate of superior hh (for internal structure detection)
โโโโ super_ll (float) : level/y-coordinate of superior ll (for internal structure detection)
โโโโ filter_insignificant_internal_breaks (bool) : if true pivot points / internal structure will be ignored where the wick in trend direction is longer than the opposite (likely to push further in direction of main trend)
โโReturns: trend: direction 1:bullish -1:bearish, (bull_bos_alert, bull_choch_alert, top_x, top_y, trail_up_x, trail_up): whether and which level broke in a bullish direction, trailing high, (bbear_bos_alert, bear_choch_alert, tm_x, btm_y, trail_dn_x, trail_dn): same in bearish direction
structure_plot(trend, bull_bos_alert, bull_choch_alert, top_x, top_y, trail_up_x, trail_up, hh, bear_bos_alert, bear_choch_alert, btm_x, btm_y, trail_dn_x, trail_dn, ll, color_bull, color_bear, show_swing_points, show_latest_swings_levels, show_bos, show_choch, line_style, label_size, keep_history)
โโdetect (and plot) structural breaks and the resulting new trend
โโParameters:
โโโโ trend (int) : crrent trend 1: bullish, -1: bearish
โโโโ bull_bos_alert (bool) : if there was a bullish bos alert -> plot it
โโโโ bull_choch_alert (bool) : if there was a bullish choch alert -> plot it
โโโโ top_x (int) : latest shwing high x
โโโโ top_y (float) : latest swing high y
โโโโ trail_up_x (int) : trailing high x
โโโโ trail_up (float) : trailing high y
โโโโ hh (float) : if there was a higher high
โโโโ bear_bos_alert (bool) : if there was a bearish bos alert -> plot it
โโโโ bear_choch_alert (bool) : if there was a bearish chock alert -> plot it
โโโโ btm_x (int) : latest swing low x
โโโโ btm_y (float) : latest swing low y
โโโโ trail_dn_x (int) : trailing low x
โโโโ trail_dn (float) : trailing low y
โโโโ ll (float) : if there was a lower low
โโโโ color_bull (color) : color for bullish BoS/ChoCh levels
โโโโ color_bear (color) : color for bearish BoS/ChoCh levels
โโโโ show_swing_points (bool) : whether to plot swing point labels
โโโโ show_latest_swings_levels (bool) : whether to track and plot latest swing point levels with lines
โโโโ show_bos (bool) : whether to plot BoS levels
โโโโ show_choch (bool) : whether to plot ChoCh levels
โโโโ line_style (string) : whether to plot BoS levels
โโโโ label_size (string) : label size of plotted BoS/ChoCh levels
โโโโ keep_history (bool) : weater to remove older swing point labels and only keep the most recent
structure(length, color_bull, color_bear, super_hh, super_ll, filter_insignificant_internal_breaks, show_swing_points, show_latest_swings_levels, show_bos, show_choch, line_style, label_size, keep_history, enabled)
โโdetect (and plot) structural breaks and the resulting new trend
โโParameters:
โโโโ length (simple int) : lookback period for swing point detection
โโโโ color_bull (color) : color for bullish BoS/ChoCh levels
โโโโ color_bear (color) : color for bearish BoS/ChoCh levels
โโโโ super_hh (float) : level/y-coordinate of superior hh (for internal structure detection)
โโโโ super_ll (float) : level/y-coordinate of superior ll (for internal structure detection)
โโโโ filter_insignificant_internal_breaks (bool) : if true pivot points / internal structure will be ignored where the wick in trend direction is longer than the opposite (likely to push further in direction of main trend)
โโโโ show_swing_points (bool) : whether to plot swing point labels
โโโโ show_latest_swings_levels (bool) : whether to track and plot latest swing point levels with lines
โโโโ show_bos (bool) : whether to plot BoS levels
โโโโ show_choch (bool) : whether to plot ChoCh levels
โโโโ line_style (string) : whether to plot BoS levels
โโโโ label_size (string) : label size of plotted BoS/ChoCh levels
โโโโ keep_history (bool) : weater to remove older swing point labels and only keep the most recent
โโโโ enabled (bool)
_check_equal_level(mode, len, eq_threshold, enabled)
โโINTERNAL: detect equal levels (double top/bottom)
โโParameters:
โโโโ mode (int) : detect 1: bullish/high, -1 bearish/low pivot points
โโโโ len (int) : lookback period for equal level (swing point) detection
โโโโ eq_threshold (float) : maximum price offset for a level to be considered equal
โโโโ enabled (bool)
โโReturns: eq_alert whether an equal level was detected and coordinates of the first and the second level/swing point
_plot_equal_level(show_eq, x1, y1, x2, y2, label_txt, label_style, label_size, line_color, line_style, keep_history)
โโINTERNAL: plot equal levels (double top/bottom)
โโParameters:
โโโโ show_eq (bool) : whether to plot the level or not
โโโโ x1 (int) : x-coordinate of the first level / swing point
โโโโ y1 (float) : y-coordinate of the first level / swing point
โโโโ x2 (int) : x-coordinate of the second level / swing point
โโโโ y2 (float) : y-coordinate of the second level / swing point
โโโโ label_txt (string) : text for the label above/below the line connecting the equal levels
โโโโ label_style (string) : style (label.style_label_down/up) for the label above/below the line connecting the equal levels
โโโโ label_size (string) : size (size.tiny) for the label above/below the line connecting the equal levels
โโโโ line_color (color) : color for the line connecting the equal levels (and it's label)
โโโโ line_style (string) : style (line.style_dotted) for the line connecting the equal levels
โโโโ keep_history (bool) : weater to remove older swing point labels and only keep the most recent
equal_levels_values(len, threshold, enabled)
โโdetect (and plot) equal levels (double top/bottom), returns coordinates
โโParameters:
โโโโ len (int) : lookback period for equal level (swing point) detection
โโโโ threshold (float) : maximum price offset for a level to be considered equal
โโโโ enabled (bool) : whether detection is enabled
โโReturns: (eqh_alert, eqh_x1, eqh_y1, eqh_x2, eqh_y2) whether an equal high was detected and coordinates of the first and the second level/swing point, (eql_alert, eql_x1, eql_y1, eql_x2, eql_y2) same for equal lows
equal_levels_plot(eqh_x1, eqh_y1, eqh_x2, eqh_y2, eql_x1, eql_y1, eql_x2, eql_y2, color_eqh, color_eql, show, keep_history)
โโdetect (and plot) equal levels (double top/bottom), returns coordinates
โโParameters:
โโโโ eqh_x1 (int) : coordinates of first point of equal high
โโโโ eqh_y1 (float) : coordinates of first point of equal high
โโโโ eqh_x2 (int) : coordinates of second point of equal high
โโโโ eqh_y2 (float) : coordinates of second point of equal high
โโโโ eql_x1 (int) : coordinates of first point of equal low
โโโโ eql_y1 (float) : coordinates of first point of equal low
โโโโ eql_x2 (int) : coordinates of second point of equal low
โโโโ eql_y2 (float) : coordinates of second point of equal low
โโโโ color_eqh (color) : color for the line connecting the equal highs (and it's label)
โโโโ color_eql (color) : color for the line connecting the equal lows (and it's label)
โโโโ show (bool) : whether plotting is enabled
โโโโ keep_history (bool) : weater to remove older swing point labels and only keep the most recent
โโReturns: (eqh_alert, eqh_x1, eqh_y1, eqh_x2, eqh_y2) whether an equal high was detected and coordinates of the first and the second level/swing point, (eql_alert, eql_x1, eql_y1, eql_x2, eql_y2) same for equal lows
equal_levels(len, threshold, color_eqh, color_eql, enabled, show, keep_history)
โโdetect (and plot) equal levels (double top/bottom)
โโParameters:
โโโโ len (int) : lookback period for equal level (swing point) detection
โโโโ threshold (float) : maximum price offset for a level to be considered equal
โโโโ color_eqh (color) : color for the line connecting the equal highs (and it's label)
โโโโ color_eql (color) : color for the line connecting the equal lows (and it's label)
โโโโ enabled (bool) : whether detection is enabled
โโโโ show (bool) : whether plotting is enabled
โโโโ keep_history (bool) : weater to remove older swing point labels and only keep the most recent
โโReturns: (eqh_alert) whether an equal high was detected, (eql_alert) same for equal lows
_detect_fvg(mode, enabled, o, h, l, c, filter_insignificant_fvgs, change_tf)
โโINTERNAL: detect FVG (fair value gap)
โโParameters:
โโโโ mode (int) : detect 1: bullish, -1 bearish gaps
โโโโ enabled (bool) : whether detection is enabled
โโโโ o (float) : reference source open
โโโโ h (float) : reference source high
โโโโ l (float) : reference source low
โโโโ c (float) : reference source close
โโโโ filter_insignificant_fvgs (bool) : whether to calculate and filter small/insignificant gaps
โโโโ change_tf (bool) : signal when the previous reference timeframe closed, triggers new calculation
โโReturns: whether a new FVG was detected and its top/mid/bottom levels
_clear_broken_fvg(mode, upper_boxes, lower_boxes)
โโINTERNAL: clear mitigated FVGs (fair value gaps)
โโParameters:
โโโโ mode (int) : detect 1: bullish, -1 bearish gaps
โโโโ upper_boxes (array) : array that stores the upper parts of the FVG boxes
โโโโ lower_boxes (array) : array that stores the lower parts of the FVG boxes
_plot_fvg(mode, show, top, mid, btm, border_color, extend_box)
โโINTERNAL: plot (and clear broken) FVG (fair value gap)
โโParameters:
โโโโ mode (int) : plot 1: bullish, -1 bearish gap
โโโโ show (bool) : whether plotting is enabled
โโโโ top (float) : top level of fvg
โโโโ mid (float) : center level of fvg
โโโโ btm (float) : bottom level of fvg
โโโโ border_color (color) : color for the FVG box
โโโโ extend_box (int) : how many bars into the future the FVG box should be extended after detection
fvgs_values(o, h, l, c, filter_insignificant_fvgs, change_tf, enabled)
โโdetect (and plot / clear broken) FVGs (fair value gaps), and return alerts and level values
โโParameters:
โโโโ o (float) : reference source open
โโโโ h (float) : reference source high
โโโโ l (float) : reference source low
โโโโ c (float) : reference source close
โโโโ filter_insignificant_fvgs (bool) : whether to calculate and filter small/insignificant gaps
โโโโ change_tf (bool) : signal when the previous reference timeframe closed, triggers new calculation
โโโโ enabled (bool) : whether detection is enabled
โโReturns: (bullish_fvg_alert, bull_top, bull_mid, bull_btm): whether a new bullish FVG was detected and its top/mid/bottom levels, (bearish_fvg_alert, bear_top, bear_mid, bear_btm): same for bearish FVGs
fvgs_plot(bullish_fvg_alert, bull_top, bull_mid, bull_btm, bearish_fvg_alert, bear_top, bear_mid, bear_btm, color_bull, color_bear, extend_box, show)
โโParameters:
โโโโ bullish_fvg_alert (bool)
โโโโ bull_top (float)
โโโโ bull_mid (float)
โโโโ bull_btm (float)
โโโโ bearish_fvg_alert (bool)
โโโโ bear_top (float)
โโโโ bear_mid (float)
โโโโ bear_btm (float)
โโโโ color_bull (color) : color for bullish FVG boxes
โโโโ color_bear (color) : color for bearish FVG boxes
โโโโ extend_box (int) : how many bars into the future the FVG box should be extended after detection
โโโโ show (bool) : whether plotting is enabled
โโReturns: (bullish_fvg_alert, bull_top, bull_mid, bull_btm): whether a new bullish FVG was detected and its top/mid/bottom levels, (bearish_fvg_alert, bear_top, bear_mid, bear_btm): same for bearish FVGs
fvgs(o, h, l, c, filter_insignificant_fvgs, change_tf, color_bull, color_bear, extend_box, enabled, show)
โโdetect (and plot / clear broken) FVGs (fair value gaps)
โโParameters:
โโโโ o (float) : reference source open
โโโโ h (float) : reference source high
โโโโ l (float) : reference source low
โโโโ c (float) : reference source close
โโโโ filter_insignificant_fvgs (bool) : whether to calculate and filter small/insignificant gaps
โโโโ change_tf (bool) : signal when the previous reference timeframe closed, triggers new calculation
โโโโ color_bull (color) : color for bullish FVG boxes
โโโโ color_bear (color) : color for bearish FVG boxes
โโโโ extend_box (int) : how many bars into the future the FVG box should be extended after detection
โโโโ enabled (bool) : whether detection is enabled
โโโโ show (bool) : whether plotting is enabled
โโReturns: (bullish_fvg_alert): whether a new bullish FVG was detected, (bearish_fvg_alert): same for bearish FVGs
OrderBlock
โโFields:
โโโโ id (series int)
โโโโ dir (series int)
โโโโ left_top (chart.point)
โโโโ right_bottom (chart.point)
โโโโ break_price (series float)
โโโโ early_confirmation_price (series float)
โโโโ ltf_high (array)
โโโโ ltf_low (array)
โโโโ ltf_volume (array)
โโโโ plot (Box type from robbatt/lib_plot_objects/49)
โโโโ profile (Profile type from robbatt/lib_profile/32)
โโโโ trailing (series bool)
โโโโ extending (series bool)
โโโโ awaiting_confirmation (series bool)
โโโโ touched_break_price_before_confirmation (series bool)
โโโโ soft_confirmed (series bool)
โโโโ has_fvg_out (series bool)
โโโโ hidden (series bool)
โโโโ broken (series bool)
OrderBlockConfig
โโFields:
โโโโ show (series bool)
โโโโ show_last (series int)
โโโโ show_id (series bool)
โโโโ show_profile (series bool)
โโโโ args (BoxArgs type from robbatt/lib_plot_objects/49)
โโโโ txt (series string)
โโโโ txt_args (BoxTextArgs type from robbatt/lib_plot_objects/49)
โโโโ delete_when_broken (series bool)
โโโโ broken_args (BoxArgs type from robbatt/lib_plot_objects/49)
โโโโ broken_txt (series string)
โโโโ broken_txt_args (BoxTextArgs type from robbatt/lib_plot_objects/49)
โโโโ broken_profile_args (ProfileArgs type from robbatt/lib_profile/32)
โโโโ use_profile (series bool)
โโโโ profile_args (ProfileArgs type from robbatt/lib_profile/32)
OrderBlock [kyleAlgo]The principle of this indicator
ATR (Average True Range) Setting: The code uses ATR to help calculate the Supertrend indicator.
Supertrend Trend Direction: Identify bullish and bearish trends with the Supertrend method.
Order Block Recognition: This part of the code recognizes and creates order blocks, visualizing them as boxes on the chart. If the number of blocks exceeds the maximum limit, old blocks will be deleted.
Function to prevent overlapping: check whether the new order block overlaps with the existing order block through the isOverlapping function.
Order block color setting: The code sets the color according to whether the block is bullish or bearish, and whether it breaks above or below. Afterwards the color of the existing order blocks will be updated.
Sensitivity settings: Through the input settings of factor and atrPeriod, the sensitivity of Supertrend and the detection of order blocks can be affected.
Visualization: Use TradingView's box.new function to draw and visualize order blocks on the chart.
Practicality:
Support and Resistance Levels: Order blocks may represent areas of support and resistance in the market. By visualizing these areas, traders can better understand when price reversals are likely to occur.
Trading Signals: Traders may be able to identify trading signals based on the color changes of blocks and price breakouts. For example, if the price breaks above a bullish block, this could be a signal to buy.
Risk Management: By using ATR to adjust the sensitivity of Supertrend, the symbol helps traders to adjust their strategies according to market volatility. This can be used as a risk management tool to help identify stop loss and take profit points.
Multi-timeframe analysis: Although the code itself does not implement multi-timeframe analysis directly, it can be done by applying this indicator on different timeframes. This helps to analyze the market from different angles.
Flexibility and Customization: Through sensitivity settings, traders can customize the indicator according to their needs and trading style.
Reduced screen clutter: By removing overlapping order blocks and limiting the maximum number of order blocks, this code helps reduce clutter on charts, allowing traders to analyze the market more clearly.
Overall, this "Pine Script" can be a powerful analytical tool for trend traders and those looking to improve their trading decisions by visualizing key market areas. It can be used alone or combined with other indicators and trading systems for enhanced functionality.
Multi-Timeframe Trend Indicator with Signalsโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Multi-Timeframe Trend Indicator with Signals
by Zakaria Safri
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ IMPORTANT DISCLAIMERS:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข This indicator may REPAINT on unconfirmed bars
โข Signals appear in real-time but may change or disappear
โข FOR EDUCATIONAL PURPOSES ONLY - NOT FINANCIAL ADVICE
โข Past performance does not guarantee future results
โข Always do your own research and use proper risk management
โข The Risk Management feature is VISUAL ONLY - does not execute trades
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ OVERVIEW:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
This indicator combines multiple technical analysis tools to help identify
potential trend directions and entry/exit points across different timeframes.
It uses SuperTrend, EMAs, ADX, RSI, and Keltner Channels to generate signals.
๐ฏ KEY FEATURES:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ SIGNAL TYPES:
โข All Signals: Shows all SuperTrend crossovers
โข Filtered Signals: Additional EMA filter for potentially higher quality signals
โข Signals use barstate.isconfirmed to reduce (but not eliminate) repainting
๐ TREND ANALYSIS:
โข Trend Ribbon: 8 EMAs creating a visual trend direction indicator
โข Trend Cloud: EMA 150/250 cloud for long-term trend context
โข Chaos Trend Line: Dynamic support/resistance trend line
โข Multi-timeframe dashboard showing trend across 8 timeframes (3m to Daily)
๐ TECHNICAL INDICATORS:
โข Keltner Channels: Dynamic price channels
โข RSI Background: Visual overbought/oversold zones
โข Candlestick Coloring: Three modes (CleanScalper/Trend Ribbon/Moving Average)
โข ADX-based trend strength analysis for MTF dashboard
๐ฏ VISUAL TOOLS:
โข Order Blocks: Supply/demand zones (optional)
โข Channel Breakouts: Pivot-based support/resistance levels
โข Reversal Signals: RSI-based potential reversal indicators
โข Visual TP/SL Lines: For reference only - does NOT execute trades
๐ DASHBOARD:
โข Real-time multi-timeframe trend analysis
โข Volatility indicator (Very Low to Very High)
โข Current RSI value with color coding
โข Customizable position and size
โ๏ธ SETTINGS:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
MAIN SETTINGS:
โข Sensitivity: Controls signal frequency (lower = more signals)
โข Signal Type: Choose between All Signals or Filtered Signals
โข Factor: ATR multiplier for SuperTrend calculation
TREND SETTINGS:
โข Toggle Trend Ribbon, Trend Cloud, Chaos Trend, Order Blocks
โข Moving Average: Customizable EMA (default 200)
ADVANCED SETTINGS:
โข Candlestick coloring with 3 different modes
โข Overbought/Oversold background coloring
โข Channel breakout levels
โข Show/hide signals
RISK MANAGEMENT (VISUAL ONLY):
โข โ ๏ธ Does NOT execute trades automatically
โข Shows potential Take Profit levels (TP1, TP2, TP3)
โข Shows potential Stop Loss level
โข Adjustable TP strength multiplier
โข For educational reference only
๐ HOW TO USE:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. SIGNAL INTERPRETATION:
โข "Buy" signals appear below candles when conditions are met
โข "Sell" signals appear above candles when conditions are met
โข Wait for bar close confirmation to avoid repainting
โข Use multiple timeframes for confluence
2. TREND CONFIRMATION:
โข Check the multi-timeframe dashboard for trend alignment
โข Use Trend Ribbon for visual trend direction
โข Trend Cloud shows longer-term market bias
โข Green candles = potential uptrend, Red = potential downtrend
3. ENTRY/EXIT STRATEGY:
โข Combine signals with other analysis tools
โข Check volatility status before entering trades
โข Use support/resistance levels for confirmation
โข The visual TP/SL lines are for planning only
4. RISK MANAGEMENT:
โข Always use stop losses (indicator shows suggested levels only)
โข Position size according to your risk tolerance
โข Never risk more than you can afford to lose
โข The indicator does NOT manage trades automatically
โ ๏ธ LIMITATIONS & RISKS:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
REPAINTING:
โข Signals may appear and disappear on unconfirmed bars
โข Always wait for bar close before taking action
โข Historical performance may look better than real-time results
FALSE SIGNALS:
โข No indicator is 100% accurate
โข Signals can fail in ranging/choppy markets
โข Use additional confirmation methods
โข Consider market context and fundamentals
VISUAL TP/SL:
โข Lines are for reference/planning only
โข Does NOT place or manage actual trades
โข You must manually set your own stop losses
โข TP levels are calculated estimates, not guarantees
๐ง TECHNICAL DETAILS:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข Version: Pine Script v5
โข Overlay: Yes (displays on main chart)
โข Anti-repaint measures: Uses barstate.isconfirmed on signals
โข Security function: Uses lookahead protection for higher timeframes
โข Dynamic requests: Enabled for MTF analysis
โข Max labels: 500
๐ COMPONENTS EXPLAINED:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
SUPERTREND:
โข Core signal generator using ATR-based bands
โข Crossovers indicate potential trend changes
โข Adjustable via Sensitivity and Factor inputs
EMA FILTER:
โข Uses 200 EMA as trend filter (customizable)
โข Filtered signals require price above/below EMA
โข Helps reduce false signals in ranging markets
ADX TREND QUALITY:
โข Measures trend strength across timeframes
โข Used in multi-timeframe dashboard
โข Shows Bullish/Bearish/Neutral states
KELTNER CHANNELS:
โข Multiple bands showing volatility zones
โข Color-coded based on RSI levels
โข Helps identify overbought/oversold conditions
ORDER BLOCKS:
โข Identifies supply/demand zones
โข Based on price structure and pivots
โข Can extend to the right for projection
๐ก BEST PRACTICES:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Use multiple timeframe confirmation
โ Wait for bar close before acting on signals
โ Combine with support/resistance analysis
โ Check overall market conditions
โ Use proper risk management (1-2% per trade)
โ Backtest on your specific market/timeframe
โ Paper trade before using real money
โ Keep a trading journal
โ Adjust settings to your trading style
โ Don't rely solely on this indicator
โ Don't ignore risk management
โ Don't trade on unconfirmed signals
โ Don't overtrade every signal
โ Don't use without understanding how it works
โ Don't expect the TP/SL feature to trade for you
๐ SUPPORT & UPDATES:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Creator: Zakaria Safri
Version: 4.3 (Compliance Update)
For questions or feedback, please use TradingView's comment section.
โ๏ธ FINAL DISCLAIMER:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
This indicator is provided for EDUCATIONAL and INFORMATIONAL purposes only.
It is NOT financial advice, investment advice, or a recommendation to buy/sell.
Trading involves substantial risk of loss. Past performance, whether actual or
indicated by historical tests of strategies, is not indicative of future results.
The creator assumes NO responsibility for your trading results. You are solely
responsible for your own investment decisions and due diligence.
Always consult with a qualified financial advisor before making investment decisions.
By using this indicator, you acknowledge and accept these risks and limitations.
MirPapa:ICT:HTF: FVG OB Threeple# MirPapa:ICT:HTF: FVG OB (Fair Value Gap Order Block)
**Version:** Pine Scriptยฎ v6
**Author:** ยฉ goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
โFVG OBโ (Fair Value Gap Order Block) identifies higher-timeframe candle ranges where a gap (imbalance) exists between two non-consecutive candles, signaling potential institutional order blocks. This module draws bullish or bearish FVG OB boxes on your lower-timeframe chart, extends them until price interacts a specified number of times, and then finalizes (recolors) the box.
---
## Inputs
- **Enable FVG OB Boxes** (`bool`)
Toggle drawing of HTF FVG OB boxes on the chart.
- **Enable FVG OB Midlines** (`bool`)
Toggle drawing of a midpoint line inside each FVG OB box.
- **FVG OB Close Count** (`int` 1โ10)
Number of HTF closes beyond the FVG range required to finalize (recolor) the box.
- **FVG OB Bull Color** (`color`)
Fill & border color for bullish FVG OB boxes.
- **FVG OB Bear Color** (`color`)
Fill & border color for bearish FVG OB boxes.
- **FVG OB Box Transparency** (`int` 1โ100)
Opacity level for FVG OB box fills (higher = more transparent).
---
## How It Works
1. **HTF Data Retrieval**
- The script uses `request.security()` (via `GetHTFrevised()`) to fetch HTF OHLC and historical values:
- `_htfHigh3` (high three bars ago) and `_htfLow1` (low one bar ago) for bullish FVG OB.
- `_htfLow3` (low three bars ago) and `_htfHigh1` (high one bar ago) for bearish FVG OB.
- It also tracks the HTF `bar_index` on the lower timeframe to align drawing.
2. **FVG OB Detection**
- **Bullish FVG OB**: Occurs when the HTF low of the previous bar (`low `) is strictly above the HTF high of three bars ago (`high `), creating a gap.
- **Bearish FVG OB**: Occurs when the HTF high of the previous bar (`high `) is strictly below the HTF low of three bars ago (`low `), creating a gap.
3. **Box Creation**
- On each new HTF bar (`ta.change(time(HTF)) != 0`), if a bullish or bearish FVG OB condition is met, the script calls `CreateBoxData()` with:
- **Bullish**: `bottom = HTF low `, `top = HTF high `, `_isBull = true`.
- **Bearish**: `bottom = HTF low `, `top = HTF high `, `_isBull = false`.
- Midline toggled by input.
- A `BoxData` struct is created and stored in either the Bull or Bear array.
4. **Box Extension & Finalization**
- On **every LTF bar**, `ProcessBoxDatas(...)` iterates over all active FVG OB boxes:
1. **Extend Right Edge**: `box.set_right(bar_index)` ensures the box follows the latest bar.
2. **Record Volume Delta**: Tracks buy/sell volume inside the box.
3. **Touch Stage Update**: `modBoxUpdateStage()` increments `_stage` when price touches its โbasePointโ (for FVG OB, the basePrice is one side of the gap).
4. **Finalize**: `setBoxFinalize()` checks if the configured number of closes beyond the FVG gap (`FVG OB Close Count`) has occurred. If so:
- `_isActive := false`
- Border and background colors are changed to the โBox Close Colorโ (input).
- Finalized boxes remain on screen semi-transparent, indicating that the FVG OB zone has been tested.
5. **Midline (Optional)**
- If โEnable FVG OB Midlinesโ is checked, `ProcessBoxDatas()` also extends a horizontal midpoint line inside the box with `line.set_x2(bar_index)`.
---
## Usage Instructions
1. **Installation**
- Copy the FVG OB section of the Pine Script into TradingViewโs Pine Editor (ensure the library import is included).
- Click โAdd to Chart.โ
2. **Configure Inputs**
- Choose a Higher Time Frame via the dropdown (e.g., โ4์๊ฐโ maps to a 4H timeframe).
- Toggle โEnable FVG OB Boxesโ and โEnable FVG OB Midlines.โ
- Select colors for bullish and bearish boxes and set transparency.
- Adjust โFVG OB Close Countโ to control how many closes beyond the gap finalize the box.
3. **Interpretation**
- **Active FVG OB Boxes** extend to the right until price closes beyond the gap range the specified number of times.
- When finalized, each box changes to the โBox Close Color,โ signaling that institutional orders in that gap have likely been filled.
Enjoy precise visualization of higher-timeframe Fair Value Gap Order Blocks on your lower-timeframe chart!






















